/* v1.15: one shared start panel and viewport-first play layout for all courses. */
.babanuki-home .home-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:24px 40px;padding:24px 0;align-items:start}
.start-panel{min-width:0}.start-panel .course-label{font-size:22px;color:var(--ink);margin:0 0 10px;line-height:1.5}.course-label small{display:block;font-size:14px;color:var(--green);margin-top:4px}
.start-panel .course-tabs{margin:0 0 12px}.start-panel .level-section{margin:0 0 12px}.start-panel .level-section h2{margin:0 0 8px}.start-panel .level-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.start-panel .level-option{padding:8px;min-height:80px}.level-option:disabled{opacity:1;background:#ecefeb;color:#5b6970}.level-option:disabled .level-description{color:#5b6970}.level-option .availability{display:inline-block;margin-top:4px;font-weight:700;color:#526358}.level-description{font-size:11px!important;line-height:1.45!important}.level-score-note{margin-top:6px}
.babanuki-home .mode-option strong{white-space:normal;font-size:13px}.babanuki-home .mode-option{min-height:44px}.babanuki-home .home-start{margin-top:12px}.babanuki-home .home-start .primary{width:100%;font-size:16px;overflow-wrap:anywhere}.start-panel .level-notice{margin-top:8px}
.start-panel .purchase-panel{margin:10px 0;padding:8px;font-size:12px}.start-panel .purchase-panel select{min-height:36px;font-size:12px;padding:6px}.start-panel .sandbox-label{display:none}.start-panel .purchase-panel .note{margin-top:4px;font-size:10px}
.babanuki-home .preview{padding:24px;max-width:100%}.babanuki-home .example-cards{gap:12px;padding:25px 0}.babanuki-home .example-card{min-width:0;width:46%;min-height:150px}.babanuki-home .example-card strong{font-size:18px;overflow-wrap:anywhere}.example-conclusion{margin-top:10px;color:var(--green)}
.babanuki-home .quiz-feature{grid-column:1/-1;max-width:680px;width:100%;margin:0;padding:12px 16px}.babanuki-home .quiz-feature .quiz-entry{margin:0 0 6px;max-width:none}.babanuki-home .quiz-feature .quiz-entry strong{display:flex;justify-content:space-between}.babanuki-home .quiz-feature>p{font-size:13px;margin:0}.other-learning{grid-column:1/-1}
.site-footer .site-service-links,.site-footer nav{row-gap:4px;line-height:1.4}.site-footer a{min-height:28px}.site-footer .company-link{text-decoration:none}.site-footer .company-link:hover,.site-footer .company-link:focus-visible{text-decoration:underline}
/* All persistent controls share the visible play region; long explanations open on demand. */
.game-shell{height:100dvh;max-width:1400px;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left));overflow:hidden}
.game-shell .topbar{flex:none;min-height:48px;padding:0;gap:6px;flex-wrap:nowrap}.game-shell .brand-logo{height:32px;width:32px}.game-shell .brand small{display:none}.game-shell .topbar .text-button{min-height:36px;padding:6px;font-size:12px}.game-shell .brand>div{font-size:14px}
.game-screen{display:flex;flex:1;min-height:0;flex-direction:column}.game-meta{position:static;flex:none;min-height:34px;margin:0;gap:4px;flex-wrap:nowrap}.game-meta h1{font-size:12px}.game-meta small{font-size:11px;display:inline;margin-left:6px}.game-meta .hint-switches{font-size:11px;gap:10px}.game-meta .text-button{min-height:32px;font-size:11px;padding:4px}
.game-layout{display:flex;flex:1;min-height:0;overflow-y:auto}.game-layout>.table{width:100%;height:100%;min-height:0;padding:8px;display:flex;flex-direction:column;border-radius:12px}.opponents{flex:none;gap:12px;padding:0 0 4px}.opponent{padding:3px 8px;min-width:0;max-width:350px;width:50%}.opponent-head{flex-wrap:nowrap;gap:5px}.opponent-head strong{font-size:12px;line-height:1.3;min-width:0}.opponent-count{font-size:11px}.backs{display:none}.avatar.country-flag{width:22px;height:22px;font-size:18px}
.turn-banner,.turn-banner.human,.turn-banner.opponent-turn{flex:none;padding:4px;margin:3px 0}.turn-banner strong,.turn-banner.human strong,.turn-banner.opponent-turn strong{font-size:14px;line-height:1.3}.turn-banner p{font-size:11px;margin-top:2px;line-height:1.3}.relations-title{display:block;flex:none;margin:2px 0 6px;font-size:11px}.relations{flex:none;gap:8px}.relation,.relation.selected{min-height:38px;padding:4px 8px}.relation strong{font-size:13px}.relation small{font-size:10px;margin-top:1px}.relation.selected:after{position:absolute;top:4px;right:4px;content:'✓';font-size:10px;margin:0}
.hand-section{display:flex;flex:1;flex-direction:column;min-height:0;margin:8px 0 0}.hand-heading{flex:none;margin:0 0 7px;gap:3px}.hand-heading h2{font-size:12px}.hand-heading small{font-size:10px}.hand{display:grid;flex:1;min-height:0;max-height:none;grid-template-columns:repeat(var(--hand-columns,3),minmax(0,1fr));grid-template-rows:repeat(var(--hand-rows,3),minmax(0,1fr));gap:7px}
.playing-card{display:flex;flex-direction:column;min-height:0;border-width:2px;border-radius:8px;box-shadow:none}.card-select,.playing-card.selected .card-select{display:flex;flex:1;min-height:0;padding:3px 5px;gap:1px;justify-content:center;position:relative}.card-select strong{font-size:18px;line-height:1.2;text-wrap:wrap;overflow-wrap:anywhere}.card-top{display:flex;position:static;flex:none;width:100%;min-height:11px;font-size:10px;line-height:1.1;align-items:center}.card-top>span:first-child{display:block}.card-top>span:first-child:not(:has(.wild-mark)){font-size:0}.wild-mark{font-size:10px;color:#735300;font-weight:800;white-space:nowrap}.wild-mark>span{font-size:13px}.selection-check{font-size:0}.selection-check:after{content:'✓';font-size:11px}.card-bottom,.wild-card .card-bottom{display:none}.card-detail{flex:none;min-height:22px;height:22px;padding:2px 1px;font-size:10px;border-radius:0 0 6px 6px}.wild-card{background:#fff0bb;border-color:#aa7513}.wild-card.selected{border-color:#14734f;box-shadow:inset 0 0 0 2px #d5ad42}.hint-flag{font-size:8px;top:-7px;right:3px;padding:1px 4px}
.game-screen>.hand-footer{position:static;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;margin:5px 0 0;padding:4px 6px;box-shadow:none;border-radius:9px}.study-toolbar{display:flex;gap:6px;grid-column:1}.study-toolbar button{min-height:32px;padding:4px 9px;font-size:12px;line-height:1.25}.hint-count{font-size:10px}.selection-row{grid-column:1;min-height:14px}.hand-footer .selection-summary{font-size:11px;line-height:1.2;max-width:none;margin:0}.hand-actions{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;gap:8px}.hand-actions button{min-height:44px;font-size:13px;padding:8px 12px}.draw-zone{flex:none;margin:5px 0;padding:5px}.draw-zone h3{font-size:11px;margin-bottom:6px}.draw-offer{gap:6px}.draw-card{width:34px;min-width:28px;height:36px;border-radius:5px;font-size:10px}.draw-card:hover{transform:none}.modal-body .discard-area{margin:0;padding:0;border:0;background:none}.modal-body .discard-pairs{grid-template-columns:1fr}.modal-header{position:sticky;top:0;z-index:1}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .babanuki-home .home-grid{grid-template-columns:1fr;gap:20px;padding-top:16px}.start-panel .course-label{font-size:19px}.start-panel .level-options{grid-template-columns:repeat(2,minmax(0,1fr))}.start-panel .level-option{min-height:80px}.start-panel .level-description{font-size:11px!important}.babanuki-home .home-start{margin:0}.babanuki-home .home-start .primary{font-size:15px;min-height:48px}.babanuki-home .mode-option strong{font-size:12px}.babanuki-home .preview{margin:0;max-width:none}.babanuki-home .quiz-feature{grid-row:2}.babanuki-home .preview{grid-row:3}.babanuki-home .other-learning{grid-row:4}
 .game-shell{padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}.game-shell .brand>div{font-size:10px}.game-shell .brand-logo{height:26px;width:26px}.game-shell .topbar{min-height:40px}.game-shell .topbar .text-button{font-size:10px;padding:5px}.game-meta{min-height:30px}.game-meta h1{font-size:10px}.game-meta small{font-size:10px}.game-meta .hint-switches{gap:4px}.game-meta .hint-switches>.check-control{display:none}.game-meta .text-button{min-height:28px;font-size:10px}.game-meta .mobile-only{display:block}.game-layout>.table{padding:5px}.opponent-head strong{font-size:10px}.opponents{gap:5px;padding-bottom:2px}.opponent{padding:2px 4px}.opponent-count{font-size:10px}.avatar.country-flag{font-size:16px;width:18px;height:18px}.turn-banner p{display:none}.turn-banner.human strong{font-size:13px}.turn-banner.opponent-turn strong{font-size:11px}.relations-title{font-size:10px;margin:2px 0 6px}.relation,.relation.selected{min-height:34px;padding:3px 5px}.relation strong{font-size:12px}.relation small{font-size:10px}.hand-heading small{font-size:10px}.hand-heading{margin-bottom:6px}.hand{gap:6px}.card-select strong{font-size:14px}.card-select,.playing-card.selected .card-select{padding:2px 3px}.card-detail{min-height:20px;height:20px}.game-screen>.hand-footer{grid-template-columns:1fr;gap:3px;padding:4px}.study-toolbar{grid-column:1;justify-content:space-between}.study-toolbar button{flex:1;min-height:30px;font-size:11px}.selection-row{grid-column:1;min-height:12px}.hand-footer .selection-summary{font-size:10px}.hand-actions{grid-column:1;grid-row:auto;width:100%}.hand-actions button{min-height:38px;font-size:12px;padding:6px}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .game-meta{position:static;height:auto;min-height:28px}.game-layout>.table{display:grid;grid-template-columns:170px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;gap:3px 12px}.opponents{grid-column:1;grid-row:1}.opponent-head{flex-wrap:wrap}.turn-banner{grid-column:1;grid-row:2}.relations-title{grid-column:1;grid-row:3}.relations{grid-column:1;grid-row:4;grid-template-columns:1fr;gap:4px;align-self:start}.relation small{display:none}.relation{min-height:28px}.hand-section{grid-column:2;grid-row:1/5;margin:0}.draw-zone{grid-column:1;grid-row:4;z-index:1;align-self:start;margin:0}.game-screen:has(.draw-zone) .relations{visibility:hidden}.game-screen>.hand-footer{grid-template-columns:1fr auto;gap:3px 10px}.study-toolbar{justify-content:start}.study-toolbar button{flex:none;min-height:30px}.hand-actions{grid-column:2;grid-row:1/3;width:280px}.hand-actions button{min-height:40px}.card-select strong{font-size:14px}
}
/* Text enlargement deliberately reflows instead of clipping any cards or controls. */
.game-layout.large-text{overflow:auto}.game-layout.large-text>.table{height:auto;min-height:100%;display:flex}.game-layout.large-text .hand-section{flex:auto}.game-layout.large-text .hand{flex:auto;grid-auto-rows:minmax(140px,auto);grid-template-rows:none;max-height:none}.game-layout.large-text .card-select strong{font-size:1rem!important}.game-layout.large-text .card-detail{height:auto;min-height:32px;font-size:.75rem}
.quiz-categories{list-style:none;padding:0;display:grid;gap:12px}.quiz-category{padding:14px;border:1px solid #cbdad2;border-radius:12px;background:#fff}.quiz-category header{display:flex;align-items:center;justify-content:space-between;gap:10px}.quiz-category h3{font-size:16px}.quiz-category progress{display:block;width:100%;height:12px;accent-color:var(--green);margin:10px 0 5px}.quiz-category p{font-size:12px;line-height:1.6;color:var(--muted)}.quiz-category button{min-height:40px;font-size:13px;padding:7px 12px}.quiz-storage-notice{font-size:12px;line-height:1.6;margin-top:10px}.quiz-category-empty{color:var(--muted)}

.game-layout.hand-scroll>.table{height:auto;min-height:100%}.game-layout.hand-scroll .hand{flex:none;grid-template-rows:none;grid-auto-rows:minmax(110px,auto)}

/* Extra-dense synthetic states keep the same readable 10px floor. */
.dense-hand .card-top{min-height:0}.dense-hand .card-select{gap:0}.dense-hand .card-select strong{line-height:1.05}.dense-hand .card-detail{height:14px;min-height:14px;white-space:nowrap;font-size:0;padding:0}.dense-hand .card-detail:after{content:'解説';font-size:10px}.dense-hand .turn-banner{padding:2px}.dense-hand .relations-title{display:none}.dense-hand .relation small{display:none}.dense-hand .relation{min-height:28px}.dense-hand .hand-section{margin-top:5px}.dense-hand .hand-heading{margin-bottom:4px}

.dense-hand .hand{gap:4px}.dense-hand .card-select,.dense-hand .playing-card.selected .card-select{padding:1px 2px}.dense-hand .card-detail{height:12px;min-height:12px}

/* Keep one or two remaining cards at card proportions instead of stretching over the table. */
.hand[data-count="1"]{width:100%;max-width:160px;max-height:224px;align-self:center}.hand[data-count="2"]{width:100%;max-width:326px;max-height:224px;align-self:center}
.game-layout.large-text .hand[data-count="1"],.game-layout.large-text .hand[data-count="2"]{max-width:none;max-height:none;align-self:stretch}
.material-home{max-width:1020px;margin:24px auto 60px}.material-home h1{font-size:28px;margin:8px 0 16px}.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}.material-card{display:flex;flex-direction:column;gap:18px;padding:28px 24px;min-height:245px;border:1px solid #bdcfc4;border-radius:18px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 8px 22px #17322308;cursor:pointer}.material-card:hover,.material-card:focus-visible{border-color:var(--green);background:#eff7f1}.material-card strong{font-size:24px}.material-card>span{line-height:1.8}.material-card small{margin-top:auto;color:var(--green);font-weight:700;font-size:14px;display:flex;justify-content:space-between}.settings-panel{background:white;border:1px solid #d5dfd9;border-radius:12px;padding:20px;margin:20px 0}.settings-panel button{margin:8px 8px 8px 0}.zoom-reset{position:fixed;left:0;top:0;transform-origin:top left;z-index:99999;background:#fff;color:#123e30;border:2px solid #197557;border-radius:12px;box-shadow:0 2px 16px #0003;min-height:44px;padding:10px 14px;font-size:16px}.zoom-reset[hidden]{display:none}.unified-shell .topbar{gap:10px;flex-wrap:wrap}.unified-shell .brand>div{font-size:20px}.unified-shell .top-right{flex-wrap:wrap}
@media(max-width:760px){.material-home{margin:20px auto 35px}.material-grid{grid-template-columns:1fr;gap:12px;margin:20px 0}.material-card{min-height:0;padding:18px;gap:10px}.material-card strong{font-size:21px}.material-card>span{font-size:14px}.material-home h1{font-size:25px}.unified-shell .brand>div{font-size:18px}.game-shell #app-settings{display:none}.game-shell #change-material{font-size:10px;padding:3px}.game-shell .brand>div{font-size:12px}.game-shell .top-right{gap:1px}.start-panel select{font-size:16px!important}}

/* No.28/31/37: visible play action, concise practice card, compact service links. */
.start-heading-row{display:flex;align-items:center;gap:18px;margin-bottom:12px}.start-heading-row .course-label{flex:1;margin:0}.babanuki-home .start-heading-row .home-start{flex:1;margin:0}.babanuki-home .start-heading-row .home-start .primary{font-size:15px;line-height:1.5;min-height:54px;padding:12px}.babanuki-home .quiz-feature{padding:0;border:1px solid #bbd4c9;border-radius:14px;background:#f0f7f2;max-width:680px;overflow:hidden}.babanuki-home .quiz-feature .quiz-entry{display:flex;align-items:center;gap:14px;text-align:left;width:100%;border:0;border-radius:0;background:transparent;padding:18px;margin:0;box-shadow:none}.quiz-entry-icon{display:grid;place-items:center;flex:none;width:48px;height:52px;border:1px solid #91b5a0;border-radius:10px;background:white;color:#187453;font-size:30px}.quiz-entry-copy{min-width:0;flex:1}.babanuki-home .quiz-feature .quiz-entry strong{font-size:20px;display:block;margin-bottom:4px}.quiz-entry-copy>span{font-size:13px;color:#426256}.quiz-entry-copy small{font-size:12px}.quiz-entry-arrow{font-size:24px;color:#187453}.quiz-feature-benefits{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 18px 14px!important}.quiz-feature-benefits>span{font-size:11px;background:#fff;border-radius:4px;padding:3px 6px;color:#315749}.quiz-feature-benefits small{font-size:11px;color:#426256}.site-footer nav,.site-footer .site-service-links{row-gap:0;column-gap:14px;align-items:center}.site-footer nav a,.site-footer .site-service-links a{min-height:24px;padding:2px 0;line-height:20px;color:inherit}.site-footer p{margin-bottom:6px}.material-examples{margin-top:24px;padding-top:20px;border-top:1px solid #d5dfd6}.material-examples h2{font-size:19px;margin-bottom:12px}.material-examples p{font-size:14px;line-height:1.8;margin:8px 0}.site-footer a{color:inherit}
@media(max-width:760px){.start-heading-row{display:block;margin:0 0 10px}.babanuki-home .start-heading-row .home-start{margin:0}.babanuki-home .quiz-feature .quiz-entry{padding:14px;gap:10px}.babanuki-home .quiz-feature .quiz-entry strong{font-size:18px}.quiz-entry-icon{width:38px;height:44px;font-size:25px}.quiz-feature-benefits{padding:0 14px 12px!important}.site-footer nav a,.site-footer .site-service-links a{min-height:24px;padding:2px 0;line-height:20px}.site-footer nav{row-gap:0}}

/* Reference: TSUNAGARU_QUIZ_UI_20260919, home entry. One complete tap target. */
.babanuki-home .quiz-feature{border:0;background:transparent;overflow:visible}
.babanuki-home .quiz-feature .quiz-entry{border:1px solid #a9cfc0;border-radius:14px;background:#edf5ef;min-height:112px;padding:20px;box-shadow:0 3px 10px #17322305}
.babanuki-home .quiz-feature .quiz-entry:hover{background:#e3f0e7;border-color:#6ba98b}
.babanuki-home .quiz-feature .quiz-entry:focus-visible{outline:3px solid #197557;outline-offset:3px}
.quiz-entry-icon{width:34px;height:40px;border:0;border-radius:0;background:none;color:#123548}
.quiz-entry-icon svg{width:32px;height:32px}.quiz-entry-copy>span,.quiz-entry-copy small{display:block;line-height:1.65}.quiz-entry-copy small{margin-top:5px;color:#527067}.quiz-entry-arrow{font-size:32px;color:#123548}
.babanuki-home .other-learning{max-width:680px;width:100%}.other-learning>#cards-open{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 20px;text-align:left;background:#fff}
@media(max-width:760px){.babanuki-home .quiz-feature .quiz-entry{padding:16px 14px;min-height:108px}.quiz-entry-icon{width:30px;height:36px}.quiz-entry-icon svg{width:28px;height:28px}.babanuki-home .other-learning{grid-row:3}.babanuki-home .preview{grid-row:4}}

/* Unified home reference: distinguish the subject through words and icons as well as color. */
.material-free{display:flex;align-items:center;gap:12px;background:#eaf5ed;color:#176d50;border-radius:12px;padding:15px 18px;margin-top:20px;font-weight:700}.material-free>span{display:grid;place-items:center;border-radius:50%;background:#187554;color:white;width:28px;height:28px;flex:none}.material-card{display:grid;grid-template-columns:52px minmax(0,1fr) 12px;align-items:center;gap:16px;min-height:0;padding:22px 18px}.material-icon{display:grid;place-items:center;width:52px;height:66px;border-radius:14px;background:#e9f6ed;color:#0b6853}.material-icon svg{width:40px;height:40px}.material-copy{display:flex;min-width:0;flex-direction:column;gap:8px}.material-copy strong{font-size:23px;line-height:1.5}.material-category{font-size:12px;font-weight:700;color:#137657}.material-copy>span:not(.material-category){font-size:14px;line-height:1.7}.material-copy small{font-size:12px;margin-top:3px}.material-arrow{font-size:28px;color:#183b50}.material-english .material-icon{background:#e7f1fd;color:#183b50}.material-english .material-category{color:#215f9d}.library-entry-icon{width:30px;height:32px;flex:none}.library-entry-icon svg{width:30px;height:32px}.library-entry-copy{display:flex;flex:1;flex-direction:column;gap:5px}.library-entry-copy small{font-size:13px;color:#526b76;font-weight:400;line-height:1.6}.other-learning>#cards-open{gap:16px;min-height:88px}.other-learning>#cards-open>span:last-child{font-size:28px}
@media(min-width:761px){.material-grid{grid-template-columns:1fr;max-width:850px}.material-card{grid-template-columns:68px minmax(0,1fr) 20px}.material-icon{width:62px;height:74px}.material-copy strong{font-size:24px}.material-copy{gap:4px}}
@media(max-width:380px){.material-card{grid-template-columns:40px minmax(0,1fr) 12px;gap:10px;padding:16px 12px}.material-icon{width:40px;height:58px}.material-icon svg{width:32px;height:32px}.material-copy strong{font-size:19px}.material-copy>span:not(.material-category){font-size:13px}}

/* Card explanations align to the bottom of each row despite different text lengths. */
.library-card{display:flex;flex-direction:column;align-items:flex-start}
.library-card .secondary{margin-top:auto;align-self:stretch}
#study-hint-previous,#study-hint-next{flex:1;min-width:0;padding:10px 8px;font-size:14px;min-height:44px}

/* Web references: readable free trial first, with room for the example on wide screens. */
.responsive-web-home .topbar a{text-decoration:none;color:var(--ink)}
.web-course-heading{display:flex;align-items:center;gap:20px;padding:28px 0 22px}
.web-course-icon{display:grid;place-items:center;flex:none;width:76px;height:86px;border-radius:18px;background:#e4f1e8;color:#126953}
.web-course-icon svg{width:52px;height:52px}
.web-course-heading h1{font-size:clamp(26px,3.2vw,42px);line-height:1.35;margin-bottom:8px;overflow-wrap:anywhere}
.web-course-heading p{font-size:17px;color:#496371;line-height:1.7}
.web-relation-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.web-relation-tags>span{padding:4px 16px;border-radius:20px;background:#e5f1eb;color:#14664e;font-size:13px}
.responsive-web-home .home-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px 20px;padding:0 0 24px}
.web-trial-panel{background:#e8f3ec;border-radius:16px;padding:24px}
.web-trial-panel h2{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:24px;line-height:1.5}
.free-badge{background:#167453;color:white;font-size:14px;padding:4px 14px;border-radius:20px}
.trial-card-count{font-size:15px;color:#486374;margin:6px 0 18px;line-height:1.65}
.responsive-web-home .mode-options{margin-bottom:14px;gap:10px}
.responsive-web-home .mode-option{min-height:48px;padding:10px;gap:8px}
.responsive-web-home .mode-option strong{white-space:normal;font-size:14px}
.responsive-web-home .home-start{position:static;display:block;margin:0;padding:0;border:0;background:none;box-shadow:none}
.responsive-web-home .home-start .primary{font-size:18px;min-height:58px;width:100%;padding:14px 10px}
.responsive-web-home .level-notice{text-align:center;line-height:1.65;font-size:13px;margin-top:12px}
.responsive-web-home .preview{height:100%;padding:22px;background:white;border-radius:16px;grid-row:auto}
.responsive-web-home .preview-label{font-size:18px;font-weight:700;letter-spacing:0}
.responsive-web-home .example-cards{padding:16px 0;gap:20px}
.responsive-web-home .example-card{transform:none;width:45%;min-height:100px;padding:10px 12px;border:1px solid #c4d3dc;background:#f4f9f6;box-shadow:none;justify-content:center;text-align:center}
.responsive-web-home .example-card:nth-child(2){transform:none;background:#fff}
.responsive-web-home .example-card strong{font-size:17px;line-height:1.5}
.responsive-web-home .card-kicker,.responsive-web-home .example-card small{display:none}
.responsive-web-home .preview-explanation{padding:0;background:none;font-size:13px;line-height:1.6;text-align:center}
.responsive-web-home .preview-bottom{margin-top:12px;padding:9px;background:#f3f6f7;border-radius:8px;font-size:12px}
.responsive-web-home .quiz-feature,.responsive-web-home .other-learning{grid-column:auto;grid-row:auto;max-width:none;margin:0;min-width:0}
.responsive-web-home .quiz-feature .quiz-entry,.responsive-web-home .other-learning>#cards-open{min-height:108px;height:100%;padding:16px;max-width:none;border-radius:14px}
.responsive-web-home .other-learning>#cards-open{font-size:18px}
.responsive-web-home .quiz-entry-copy small{font-size:11px}
.web-more-levels,.web-bundle{grid-column:1/-1}
.web-more-levels{padding-top:20px;margin-top:6px;border-top:1px solid var(--line)}
.web-more-levels h2{font-size:21px;margin-bottom:14px}
.web-more-levels .level-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.web-more-levels .level-option{border-radius:12px;padding:14px;min-height:116px;background:#fff}
.web-more-levels .level-option.active{background:#e5f3e9}
.web-more-levels .level-option:disabled{background:#fafbf9;color:var(--ink);opacity:1}
.web-more-levels .level-option strong{font-size:14px}
.web-more-levels .level-description{font-size:12px!important;line-height:1.7!important;margin-top:7px}
.web-more-levels .availability{display:inline-block;padding:3px 14px;background:#edf0f1;border-radius:6px;margin-top:8px;font-size:11px}
.web-bundle{display:flex;align-items:center;gap:24px;padding:20px 24px;background:#e7f2ea;border-radius:14px;flex-wrap:wrap}
.web-bundle>div:first-child{flex:1;min-width:190px}
.web-bundle h2{font-size:18px;line-height:1.5}.web-bundle p{font-size:13px;color:#425f6e;line-height:1.7}
.bundle-price{display:flex;flex-direction:column;padding-left:24px;border-left:1px solid #b3d4c3}
.bundle-price strong{font-size:30px;color:#147152;line-height:1.3}.bundle-price span{font-size:12px}
.bundle-state{background:#dce5e3;border-radius:8px;padding:12px 18px;color:#496071;font-size:14px}
.web-materials .material-home{max-width:none;margin:28px auto 24px}
.material-hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:30px}
.web-materials .material-hero h1{font-size:clamp(30px,3.5vw,45px);line-height:1.4;margin:12px 0}
.material-hero>div>p:not(.eyebrow):not(.material-free){font-size:17px;color:#496371;line-height:1.8}
.web-materials .material-free{display:inline-flex;margin-top:20px;padding:12px 18px}
.material-art{display:flex;align-items:center;justify-content:center;min-height:175px;border-radius:50%;background:#e6f3ea}
.material-art>span{display:grid;place-items:center;width:95px;height:130px;border:2px solid #499c80;border-radius:9px;background:#fff;color:#143f50;transform:rotate(-13deg);font-weight:700;box-shadow:0 3px 8px #17453308;font-size:15px}
.material-art>span:nth-child(2){transform:rotate(5deg);z-index:1}.material-art>span:nth-child(3){transform:rotate(15deg)}
.material-heading{font-size:25px;margin:30px 0 16px}
.web-materials .material-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:14px;margin:0 0 20px}
.web-materials .material-card{grid-template-columns:56px minmax(0,1fr) 10px;align-content:start;align-items:center;gap:16px 12px;padding:22px 16px;box-shadow:none;border-radius:14px}
.web-materials .material-icon{width:56px;height:76px}
.web-materials .material-copy{gap:5px}.web-materials .material-copy strong{font-size:22px;line-height:1.4}
.web-materials .material-copy>span:not(.material-category){font-size:13px;line-height:1.7}
.material-relations{grid-column:1/-1;display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;align-self:end}
.material-relations>span{font-size:11px;line-height:1.6;padding:3px 8px;border-radius:20px;background:#eaf4ef;color:#345e57}
.material-english .material-relations>span{background:#eaf2fb;color:#385b80}
.web-materials .material-cta{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;font-weight:400;color:var(--ink);font-size:14px;margin:0}
.material-activities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:22px;background:#e8f4ed;border-radius:14px;gap:24px}
.material-activities>div+div{border-left:1px solid #bfd9cb;padding-left:24px}
.material-activities strong{font-size:19px}.material-activities p{font-size:13px;color:#486473;line-height:1.7;margin-top:6px}
.material-pricing{padding:24px 0;text-align:center;font-size:17px;line-height:1.7;border-bottom:1px solid var(--line)}
.material-pricing small{display:block;font-size:13px;color:#526b79}
@media(min-width:1200px){.web-more-levels .level-options{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){.web-materials .material-grid{grid-template-columns:1fr}.web-materials .material-card{grid-template-columns:64px minmax(0,1fr) 18px}.web-materials .material-relations{grid-column:2;justify-content:start}.web-materials .material-cta{grid-column:1/-1}.material-hero{grid-template-columns:1fr 230px}.material-art>span{width:75px;height:115px;font-size:13px}.responsive-web-home .home-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.web-trial-panel{padding:20px}.web-trial-panel h2{font-size:21px}.responsive-web-home .mode-option strong{font-size:12px}}
@media(max-width:760px){
 .web-course-heading{gap:14px;padding:22px 0}.web-course-icon{width:50px;height:68px;border-radius:12px}.web-course-icon svg{width:38px;height:38px}.web-course-heading h1{font-size:26px}.web-course-heading p{font-size:14px}.web-relation-tags{gap:6px;margin-top:8px}.web-relation-tags>span{font-size:11px;padding:4px 10px}
 .responsive-web-home .home-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.responsive-web-home .home-start{position:static!important;left:auto;right:auto;bottom:auto;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
 .responsive-web-home .home-start .primary{font-size:17px;min-height:56px}.responsive-web-home .web-trial-panel{grid-row:1;padding:20px 16px}.responsive-web-home .quiz-feature{grid-row:2}.responsive-web-home .other-learning{grid-row:3}.responsive-web-home .preview{grid-row:4;width:100%;max-width:none;padding:18px}.responsive-web-home .web-more-levels{grid-row:5}.responsive-web-home .web-bundle{grid-row:6}
 .responsive-web-home .quiz-feature .quiz-entry,.responsive-web-home .other-learning>#cards-open{min-height:100px}.responsive-web-home .other-learning>#cards-open{font-size:17px}.responsive-web-home .mode-option{min-height:48px;padding:10px 6px}.responsive-web-home .mode-option strong{font-size:12px}.responsive-web-home .level-notice{font-size:12px}.trial-card-count{font-size:14px;margin-bottom:16px}
 .web-more-levels .level-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.web-more-levels .level-option{padding:12px;min-height:126px}.web-more-levels .level-option strong{font-size:13px}.web-bundle{gap:16px;padding:18px}.web-bundle>div:first-child{flex-basis:100%}.web-bundle h2{font-size:17px}.bundle-price{padding:0;border:0;flex:1}.bundle-price strong{font-size:27px}.bundle-state{font-size:12px;padding:10px}
 .material-hero{display:block}.material-art{display:none}.web-materials .material-hero h1{font-size:32px}.material-hero>div>p:not(.eyebrow):not(.material-free){font-size:15px}.material-heading{font-size:23px;margin-top:26px}.web-materials .material-card{grid-template-columns:50px minmax(0,1fr) 12px;padding:18px 14px;gap:12px}.web-materials .material-icon{width:50px;height:64px}.web-materials .material-copy strong{font-size:22px}.material-relations>span{font-size:10px;padding:3px 6px}.web-materials .material-relations{grid-column:1/-1}.material-activities{grid-template-columns:1fr;gap:15px;padding:20px}.material-activities>div+div{border-left:0;border-top:1px solid #bfd9cb;padding:15px 0 0}.material-pricing{font-size:15px;text-align:left}
}

/* No.13: printed pearl/mint wildcard, independent of focus and selection. */
.playing-card{background:linear-gradient(145deg,#fff 30%,#fafcfc);border-color:#c7d4da;box-shadow:inset 1px 1px 0 #fff,1px 2px 0 #b5c3c8,1px 4px 5px #263e4524}
.playing-card .card-detail{background:linear-gradient(#fff,#f3f6f7);border-top:1px solid #dbe4e8}
.playing-card.wild-card{container-type:inline-size;background:linear-gradient(135deg,#e5f4eb 0%,#fffefa 28%,#fff 55%,#edf8f0 85%,#d9eee3);border:2px solid #c4a65c;box-shadow:inset 0 0 0 2px #fffdf5,inset 0 0 0 3px #dbc78e,1px 2px 0 #b4a473,1px 4px 5px #263e4524}
.wild-card .card-select,.wild-card .card-select:disabled{color:#123548;background:transparent;padding-left:8px;padding-right:8px;isolation:isolate}
.wild-card .wild-mark{display:inline-flex;align-items:center;background:linear-gradient(110deg,#15755c,#2a9272);border:1px solid #cdb570;border-radius:3px;color:#fffaf0;font-size:10px;font-weight:800;padding:2px 6px;white-space:nowrap;box-shadow:0 1px 2px #2b594433}
.wild-card .wild-mark>span{font-size:inherit}
.wild-card .card-top{position:static;z-index:1;min-height:18px}
.wild-card .card-select strong{position:relative;z-index:1;max-width:64%;align-self:flex-start;line-height:1.1}
.wild-emblem{position:absolute;right:4px;bottom:4px;width:40%;height:68%;max-height:84px;opacity:1;pointer-events:none;z-index:-1}
.wild-card .card-detail,.wild-card.selected .card-detail{background:linear-gradient(115deg,#f7fcf9,#fffefa);color:#234955;border-top:1px solid #d5bd7c}
.wild-card.selected{border-color:#18765c;outline:2px solid #18765c;outline-offset:1px}
.wild-card.selected .card-select{background:transparent;box-shadow:none}
.wild-card.selected .selection-check{color:#fff;background:#177052;border-radius:50%;width:16px;height:16px;display:grid;place-items:center;flex:none}
.wild-card.hinted{outline-style:dashed}
.wild-card .card-select:focus-visible,.wild-card .card-detail:focus-visible{outline:3px solid #1b7194;outline-offset:-3px}
.dense-hand .wild-emblem{display:none}.dense-hand .wild-card .card-select strong{max-width:100%}
@container(max-width:110px){.wild-mark .wild-label-suffix{display:none}}

/* No.65: the same brand scale on every screen, including play. */
.shell .brand>div{font-size:20px}
@media(max-width:760px){.shell .brand>div{font-size:18px}.game-shell .topbar{flex-wrap:wrap;gap:0 8px;padding:3px 0}.game-shell .brand{flex:none}.game-shell .top-right{margin-left:auto}.game-shell .topbar .text-button{min-height:28px}}

/* No.68/72: a stable card slot for 1–8 cards; dense hands can shrink. */
.playing-card{display:grid;grid-template-rows:minmax(0,1fr) auto}
.playing-card .card-select{min-height:0}
.game-layout:not(.large-text) .hand{flex:none;width:100%;max-width:1180px;max-height:none;height:calc(var(--hand-rows,4)*var(--hand-card-height,110px) + (var(--hand-rows,4) - 1)*var(--hand-gap,6px));gap:var(--hand-gap,6px);align-self:center}
.game-layout:not(.dense-hand) .card-detail{min-height:26px;height:26px;font-size:11px;padding:3px}
.game-layout.hand-scroll .hand{height:auto}
@media(min-width:1001px){
 .game-shell .topbar .text-button{font-size:14px;padding:8px 12px}
 .game-meta h1{font-size:16px}.game-meta small{font-size:14px}
 .opponent-head strong{font-size:15px}.opponent-count{font-size:14px}.opponent{padding:7px 12px}
 .turn-banner strong,.turn-banner.human strong,.turn-banner.opponent-turn strong{font-size:20px}.turn-banner p{font-size:14px}
 .relations-title,.hand-heading h2{font-size:16px}.hand-heading small{font-size:12px}
 .relation,.relation.selected{min-height:56px;padding:7px 12px}.relation strong{font-size:18px}.relation small{font-size:13px}
 .card-select strong{font-size:22px}.wild-card .wild-mark,.wild-card .wild-mark>span{font-size:13px}.wild-emblem{width:90px;height:60%;max-height:72px}
 .game-layout:not(.dense-hand) .card-detail{min-height:40px;height:40px;font-size:16px;padding:8px}
 .study-toolbar button{min-height:48px;font-size:18px;padding:10px 20px}.hint-count{font-size:16px}
 .hand-footer .selection-summary{font-size:18px;line-height:1.5}.hand-actions button{min-height:52px;font-size:18px;padding:12px 20px}
 .game-screen>.hand-footer{gap:7px 20px;padding:8px 10px}
}
.quiz-batch-note{font-size:14px;line-height:1.65;margin:8px 0;color:#38564c}.quiz-category .quiz-batch-note{font-size:13px;color:#38564c}.quiz-category h3 small{font-size:13px;margin-left:8px;font-weight:400}

@media(max-width:400px) and (max-height:650px),(max-width:1000px) and (max-height:500px){
 .game-layout:not(.dense-hand) .card-detail{height:20px;min-height:20px;font-size:10px;padding:2px 1px}
 .playing-card:not(.wild-card) .card-top{min-height:0;height:0}
 .playing-card:not(.wild-card) .selection-check{position:absolute;right:3px;top:2px}
}
.playing-card{grid-template-columns:minmax(0,1fr)}
.playing-card .card-select,.playing-card .card-detail{min-width:0}
.dense-hand .wild-mark,.dense-hand .wild-mark>span{font-size:10px;gap:1px}.dense-hand .wild-mark>span[aria-hidden]{font-size:11px}
@media(max-width:400px) and (max-height:650px),(max-width:1000px) and (max-height:500px){.wild-card .wild-mark,.wild-card .wild-mark>span{font-size:10px;gap:2px}.wild-card .wild-mark>span[aria-hidden]{font-size:12px}}
@media(min-width:1001px) and (max-height:700px){
 .game-layout:not(.dense-hand) .card-detail{height:32px;min-height:32px;font-size:14px;padding:5px}
 .playing-card:not(.wild-card) .card-top{min-height:0;height:0}
 .playing-card:not(.wild-card) .selection-check{position:absolute;right:5px;top:3px}
}

/* No.74/75/78: one disclosure for prices, neutral navigation, one footer divider. */
.babanuki-home .quiz-feature{background:#fff;border-color:#c7d4da}
.babanuki-home .quiz-feature .quiz-entry:hover{background:#f5faf7}
.web-materials .material-pricing{border-bottom:0}
.bundle-notice{margin-top:18px;border-top:1px solid #ccd9d9;border-bottom:1px solid #ccd9d9;background:transparent}
.bundle-notice>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 4px;list-style:none;cursor:pointer}
.bundle-notice>summary::-webkit-details-marker{display:none}
.bundle-notice>summary strong,.bundle-notice>summary small{display:block}
.bundle-notice>summary strong{font-size:18px}.bundle-notice>summary small{font-size:13px;font-weight:400;line-height:1.7;margin-top:4px;color:#4a6170}
.pricing-chevron{font-size:24px}.bundle-notice[open] .pricing-chevron{transform:rotate(180deg)}
.bundle-notice .purchase-panel{margin:0 0 16px;padding:14px;border:0;background:#f3f7f5}
.bundle-notice .purchase-panel h2{font-size:18px}.bundle-notice .purchase-panel p{font-size:14px;line-height:1.7}
.bundle-notice .purchase-panel button{width:100%;min-height:44px;margin-top:8px}
@media(min-width:1001px){.draw-zone{padding:12px;margin:10px 0}.draw-zone h3{font-size:20px;line-height:1.5;margin-bottom:12px}.draw-offer{gap:12px;flex-wrap:wrap}.draw-card{width:58px;min-width:58px;height:76px;font-size:18px;border-radius:8px}.wild-card .wild-mark,.wild-card .wild-mark>span{font-size:13px}.wild-emblem{width:40%;height:68%;max-height:90px}}

/* The learning deck choice is independent from the level 2–6 purchase. */
.deck-selector{display:grid;gap:8px;margin:12px 0}.deck-selector label{font-weight:700}.deck-selector select{max-width:100%;width:100%;min-height:44px;padding:8px;border:1px solid var(--line,#cdd8dc);border-radius:10px;background:#fff;color:inherit;font:inherit}.deck-selector .note{font-size:13px;line-height:1.5}

.brand[href]{color:inherit;text-decoration:none}.brand[href]:focus-visible{outline:3px solid #317bc1;outline-offset:4px;border-radius:6px}

/* No.78: the Web entry itself must stay neutral, not only its parent. */
.babanuki-home .quiz-feature .quiz-entry{background:#fff;border-color:#c7d4da}.babanuki-home .quiz-feature .quiz-entry:hover{background:#f6f7f8;border-color:#aebdc5}

/* Course-sized English content uses the same responsive learning panels. */
@media(min-width:761px){.responsive-web-home .toeic600-grid .start-panel{grid-row:1/3}.responsive-web-home .toeic600-grid .quiz-feature,.responsive-web-home .toeic600-grid .other-learning{grid-column:2}.responsive-web-home .toeic600-grid .other-learning>#cards-open{height:auto}}
/* No.101: compact material directory; cards grow when text is enlarged. */
.course-directory{max-width:1240px;margin:auto;color:var(--ink)}
.materials-shell .material-home{max-width:none;margin:20px auto 24px}
.materials-shell .directory-topbar{min-height:64px;padding:4px 0;gap:8px;flex-wrap:wrap}
.directory-topbar .brand{min-width:0;white-space:normal;gap:8px}
.directory-topbar .brand-logo{width:36px;height:36px}
.directory-topbar .brand>div{font-size:1.25rem;line-height:1.4}
.directory-topbar .top-right{gap:0;flex-wrap:nowrap;margin-left:auto}
.directory-topbar .directory-header-action{display:grid;place-items:center;width:44px;height:44px;padding:8px;flex:none}
.directory-header-action svg{width:26px;height:26px}
.directory-hero{text-align:left;padding:0 0 18px}
.material-home .directory-hero h1{font-size:1.75rem;line-height:1.4;margin:0 0 6px}
.directory-hero p{font-size:1rem;line-height:1.5;margin:0 0 8px;color:#526774}
.directory-trial{display:inline-block;border-radius:18px;background:#e2f1e9;padding:4px 12px;color:#136c54;font-size:.875rem;line-height:1.5;font-weight:700}
.directory-group{margin:0 0 18px}
.directory-group h2{display:flex;align-items:center;gap:9px;font-size:1.125rem;line-height:1.4;margin:0 0 10px}
.directory-group h2:before{content:"";align-self:stretch;min-height:1.2em;width:5px;border-radius:4px;background:#16866b;flex:none}
.directory-english-group h2:before{background:#3496ea}
.directory-heading-row{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin-bottom:10px}
.directory-heading-row h2{margin:0}
.directory-caption{margin:0;color:#526774;font-size:.8125rem;line-height:1.5}
.directory-ai-grid,.directory-toeic-grid,.directory-kanji-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.directory-toeic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.directory-kanji-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.directory-card{position:relative;box-sizing:border-box;min-width:0;margin:0;padding:12px;border:1px solid #d3dfe3;border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 3px 9px #17322308;font:inherit;text-align:left;text-decoration:none;overflow-wrap:anywhere}
a.directory-card,button.directory-card{cursor:pointer}
a.directory-card:hover,button.directory-card:hover{background:#f7fcfa;border-color:#3d9781}
a.directory-card:focus-visible,button.directory-card:focus-visible{outline:3px solid #116b59;outline-offset:3px}
.directory-ai{display:grid;grid-template-columns:36px minmax(0,1fr) 12px;gap:12px;align-items:center;min-height:76px}
.directory-icon{display:grid;place-items:center;color:#16846b;background:#ecf8f2;border-radius:10px;width:36px;height:36px}
.directory-icon svg{width:28px;height:28px}
.directory-copy{display:grid;gap:3px;min-width:0}
/* Text-only cards use the icon and copy tracks together in the shared layout. */
.directory-ai>.directory-copy:first-child{grid-column:1/3}
.directory-copy strong{font-size:1.125rem;line-height:1.4}
.directory-copy>span{color:#526774;font-size:.8125rem;line-height:1.5}
.directory-arrow{font-size:1.5rem;line-height:1;color:#12374e}
.directory-exam{display:grid;grid-template-columns:minmax(0,1fr) 12px;align-content:start;align-items:center;gap:5px 4px;border-top:4px solid #86c7ff;min-height:132px}
.directory-kanji{border-top-color:#a8d9c9}
.directory-course-name{grid-area:1/1;font-size:1.125rem;line-height:1.4}
.directory-score{grid-column:1/-1;font-size:.8125rem;line-height:1.5;color:#526774}
.directory-goal{grid-column:1/-1;font-size:.9375rem;line-height:1.5}
.directory-description{grid-column:1/-1;font-size:.8125rem;line-height:1.5;color:#526774}
.directory-exam .directory-arrow{grid-area:1/2;justify-self:end}
.directory-status{grid-column:1/-1;font-size:.8125rem;font-weight:700;color:#53646f;line-height:1.5}
.directory-note{margin:0;text-align:center;font-size:.8125rem;line-height:1.6;color:#526774}
@media(max-width:1100px){.directory-kanji-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.directory-toeic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .materials-shell{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top);padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .materials-shell .directory-topbar{min-height:56px;gap:4px}
 .materials-shell .directory-topbar .brand>div{font-size:1.125rem;letter-spacing:0}
 .directory-topbar .brand{gap:5px}
 .directory-topbar .brand-logo{width:28px;height:32px}
 .materials-shell .material-home{margin:14px auto 16px}
 .material-home .directory-hero h1{font-size:1.5rem}
 .directory-hero{padding-bottom:16px}
 .directory-hero p{font-size:.875rem}
 .directory-group h2{font-size:1.0625rem}
 .directory-ai-grid{grid-template-columns:1fr}
 .directory-kanji-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .directory-kanji-grid>:last-child:nth-child(odd){grid-column:1/-1}
 .directory-ai-grid,.directory-toeic-grid,.directory-kanji-grid{gap:8px}
 .directory-ai{min-height:72px;gap:10px;padding:10px 12px}
 .directory-copy strong,.directory-course-name{font-size:1rem}
 .directory-exam{padding:10px 12px;min-height:100px;gap:4px}
 .directory-description{display:none}
 .materials-shell .site-footer{margin-top:16px}
}
@media(max-width:340px){.directory-toeic-grid,.directory-kanji-grid{grid-template-columns:1fr}.directory-exam{min-height:100px}.directory-description{display:block}}

/* No.90/92: one typography and arrow component for both learning actions. */
.babanuki-home .learning-entry,.babanuki-home .quiz-feature .learning-entry,.babanuki-home .other-learning>#cards-open.learning-entry{display:flex;align-items:center;gap:16px;width:100%;min-height:108px;padding:18px 20px;text-align:left;background:#fff;border:1px solid #c7d4da;border-radius:14px;font-family:inherit;font-weight:400;line-height:1.6;color:var(--ink);box-shadow:0 3px 10px #17322305}
.babanuki-home .learning-entry .learning-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.babanuki-home .learning-entry .learning-entry-copy strong{display:block;margin:0;font-family:inherit;font-size:20px;font-weight:700;line-height:1.5}
.babanuki-home .learning-entry .learning-entry-copy>span,.babanuki-home .learning-entry .learning-entry-copy small{font-size:13px;font-weight:400;line-height:1.6;color:#526b76}
.babanuki-home .learning-entry .learning-entry-arrow{width:24px;height:32px;flex:0 0 24px;color:var(--ink)}
@media(max-width:760px){.babanuki-home .learning-entry,.babanuki-home .quiz-feature .learning-entry,.babanuki-home .other-learning>#cards-open.learning-entry{padding:16px 14px}.babanuki-home .learning-entry .learning-entry-copy strong{font-size:18px}}

/* No.94/97: compact secondary actions and an explicit price disclosure. */
.babanuki-home .learning-entry,.babanuki-home .quiz-feature .learning-entry,.babanuki-home .other-learning>#cards-open.learning-entry{min-height:48px;height:auto;padding:9px 14px;gap:10px;border-radius:10px;box-shadow:none}
.babanuki-home .learning-entry .learning-entry-copy strong{font-size:16px;line-height:1.5;margin:0}
.babanuki-home .home-start .primary,.babanuki-home .start-heading-row .home-start .primary{min-height:64px;font-size:18px;padding:15px 12px}
.purchase-check-note{font-size:.8125rem;line-height:1.5;margin:8px 0;color:#526b76}
.bundle-notice{border:1px solid #c7d4da;border-radius:12px;background:#fff}
.bundle-notice>summary{padding:14px;gap:12px;min-height:64px}
.bundle-notice>summary:hover{background:#f5f8f7}
.bundle-notice>summary:focus-visible{outline:3px solid #197557;outline-offset:3px}
.pricing-symbol{display:grid;place-items:center;width:32px;height:32px;flex:none;border:2px solid currentColor;border-radius:50%;font-size:20px;font-weight:700}
.bundle-notice>summary>span:nth-child(2){flex:1;min-width:0}
.bundle-notice>summary strong{font-size:16px}
.pricing-toggle{display:flex;align-items:center;gap:5px;font-size:.75rem;white-space:nowrap;color:#365367}
.pricing-chevron{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;flex:none}
.bundle-notice .when-open{display:none}.bundle-notice[open] .when-open{display:inline}.bundle-notice[open] .when-closed{display:none}
@media(max-width:380px){.bundle-notice>summary{gap:8px;padding:12px 10px}.pricing-symbol{width:26px;height:26px}.pricing-toggle{font-size:11px}}

/* Full course titles stay separate from the navigation on narrow Web screens. */
@media(max-width:760px){.course-branded.topbar{flex-wrap:wrap;gap:8px}.course-branded .brand{flex:1 1 100%;max-width:100%;min-width:0;white-space:normal}.course-branded .brand>div{font-size:clamp(16px,4.5vw,18px);overflow-wrap:anywhere}.course-branded .top-right{margin-left:auto;gap:12px;flex-wrap:wrap}.course-branded .top-right .text-button{font-size:.75rem;white-space:nowrap}}

/* Web links retain native link behavior and match the existing navigation. */
a.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--ink);font-weight:700;text-decoration:none;border-radius:8px}
a.text-button:hover,a.text-button:focus-visible{text-decoration:underline;background:#e7efeb}
.planned-course{max-width:720px;padding:32px 24px;background:white;border:1px solid #d5dfd9;border-radius:18px;line-height:1.8}
.planned-course h1{line-height:1.4;margin:0 0 20px}.planned-course p{margin:16px 0}
.planned-course .directory-status{display:inline-block;padding:4px 16px}
a.planned-course-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;margin-top:12px;text-decoration:none;color:white;font-weight:700}
@media(max-width:600px){.planned-course{padding:24px 18px}.planned-course h1{font-size:25px}}
/* No.102: keep play, quiz and cards together in the first view. */
.primary-home-shell .directory-topbar{min-height:56px;gap:4px;padding:4px 0;flex-wrap:wrap}
.primary-home-shell .directory-topbar .brand{min-width:0;white-space:normal}
.primary-home-shell .directory-topbar .brand>div{font-size:1.125rem;line-height:1.4;letter-spacing:0}
.primary-home-shell .directory-topbar .brand-logo{width:28px;height:32px}
.primary-course-back{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;margin:0;background:none;border:0;color:var(--ink);font-size:.875rem;text-decoration:none;font-weight:600}
.primary-course-back:hover{text-decoration:underline}
.primary-course-home{max-width:820px;margin:2px auto 32px;padding:0}
.primary-course-heading{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:0 0 14px}
.primary-course-heading h1{font-size:1.375rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.primary-free-badge{font-size:.8125rem;line-height:1.5;font-weight:700;border-radius:20px;padding:3px 10px;color:#fff;background:#127456}
.primary-play-settings h2,.primary-study-actions h2{font-size:1rem;font-weight:700;line-height:1.5;margin:0 0 6px}
.primary-level-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
.primary-level-options .level-option{color:var(--ink);display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;min-height:46px;height:auto;background:white;border:1px solid #cfdbdf;border-radius:9px;font-size:.875rem;white-space:normal;line-height:1.4;min-width:0}
.primary-level-options .level-number{font-size:1.25rem;font-weight:700;flex:none}
.primary-level-options .level-copy{min-width:0}
.primary-level-options .level-copy strong{display:block;font-size:.875rem;line-height:1.4}
.primary-level-options .level-option.active{border:2px solid #168063;background:#edf7f1;padding:7px 9px}
.primary-level-explanation{font-size:.8125rem;color:#526774;line-height:1.5;margin:0 0 14px;overflow-wrap:anywhere}
.primary-game-settings{background:white;border:1px solid #cfdbdf;border-radius:9px;margin:0 0 8px}
.primary-game-settings>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;list-style:none;cursor:pointer}
.primary-game-settings>summary::-webkit-details-marker{display:none}
.primary-game-settings>summary strong{flex:none;font-size:.875rem;line-height:1.5}
.primary-game-settings>summary>span{font-size:.8125rem;line-height:1.5;color:#526774;flex:1;overflow-wrap:anywhere;min-width:0}
.primary-game-settings>summary>svg{transform:rotate(90deg)}
.primary-game-settings[open]>summary>svg{transform:rotate(-90deg)}
.primary-game-settings-body{padding:8px 12px 12px;border-top:1px solid #e0e6e3}
.primary-course-home .mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.primary-course-home .mode-option{min-height:44px;height:auto;padding:8px;line-height:1.5}
.primary-course-home .mode-option strong{font-size:.875rem}
.primary-course-home .deck-selector{margin:10px 0 0}
.primary-game-settings-body select{font:inherit;font-size:1rem;width:100%;min-height:44px;background:white;color:var(--ink);border:1px solid #cfdbdf;border-radius:8px;padding:8px}
.primary-game-settings-body .purchase-panel{padding:0;margin:8px 0 0;border:0;background:none}
.primary-game-settings-body label,.single-deck-label{font-size:.875rem;line-height:1.5}
.single-deck-name{font-size:.875rem;line-height:1.5;margin:2px 0 0}
.primary-course-note{font-size:.8125rem;color:#526774;font-weight:400;line-height:1.5;margin:8px 0 0}
.primary-course-home .primary-course-action{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:64px;height:auto;padding:9px 16px;margin:0 0 8px;background:#123247;color:white;font-size:1.0625rem;border-radius:10px;line-height:1.5;white-space:normal;text-align:left;overflow-wrap:anywhere}
.primary-course-action>span:first-child{flex:1;min-width:0}
.primary-course-action strong{display:block;font-size:1.0625rem;font-weight:700;line-height:1.4}
.primary-course-action small{display:block;font-size:.8125rem;line-height:1.5;font-weight:400;color:#d9e8ef;margin-top:2px}
.primary-learning-menu{display:grid;gap:8px;background:none}
.primary-learning-menu .primary-learning-row{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;height:auto;padding:9px 14px;margin:0;border:1px solid #cfdbdf;border-radius:9px;background:white;color:var(--ink);font-family:inherit;line-height:1.5;text-decoration:none;box-shadow:none;text-align:left;white-space:normal}
.primary-learning-row .primary-learning-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.primary-learning-copy strong{display:block;font-size:1rem;font-weight:700;line-height:1.4}
.primary-learning-copy small{display:block;font-size:.8125rem;line-height:1.5;font-weight:400;margin-top:2px}
.primary-learning-menu .primary-learning-quiz{min-height:60px;padding:7px 14px;background:#edf7f1;border-color:#168063}
.primary-learning-quiz small{color:#136c54}
.primary-learning-quiz .primary-learning-icon{color:#13785c;width:28px;height:28px}
.primary-learning-icon{width:24px;height:24px;flex:none}
.primary-learning-arrow{width:14px;height:14px;flex:none}
.primary-learning-lock{font-size:.875rem;flex:none}
.primary-learning-row[aria-disabled=true],.primary-learning-row:disabled{color:#61747e;cursor:default;opacity:1}
.primary-learning-row:not([aria-disabled=true]):not(:disabled):hover{background:#f4f8f6;border-color:#168063}
.primary-course-pricing{border-top:1px solid #cfdbdf;border-bottom:1px solid #cfdbdf;margin-top:16px}
.primary-course-pricing summary{display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:48px;padding:10px 0;cursor:pointer;list-style:none;font-size:.9375rem;font-weight:600}
.primary-course-pricing summary::-webkit-details-marker{display:none}
.primary-course-pricing summary svg{width:16px;height:16px;flex:none}
.primary-course-pricing[open] summary svg{transform:rotate(180deg)}
.primary-course-pricing>div{padding:12px 0 20px;line-height:1.8}
@media(max-width:760px){
 .primary-home-shell{padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 .primary-course-heading h1{font-size:1.25rem}
 .primary-course-heading{margin-bottom:12px}
 .primary-level-options .level-option{padding:7px 8px;gap:8px;min-height:44px}
 .primary-level-options .level-option.active{padding:6px 7px}
 .primary-course-home .mode-option strong{font-size:.8125rem}
 .primary-home-shell .site-footer{margin-top:16px}
}

/* No.104: readable play utilities; wrap before reducing text or hiding countries. */
.game-shell .topbar{flex-wrap:wrap}
.game-shell .top-right{max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:0 4px}
.game-shell .topbar .text-button,.game-shell #change-material{font-size:.875rem;line-height:1.4;min-height:44px;padding:6px}
.game-shell .game-meta{flex-wrap:wrap;min-height:44px;gap:0 8px}
.game-shell .game-meta>div:first-child{min-width:0}
.game-shell .game-meta h1{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px;font-size:1rem;line-height:1.5}
.game-shell .game-meta small{font-size:.875rem;line-height:1.5;margin:0}
.game-shell .game-meta .text-button{font-size:.875rem;line-height:1.5;min-width:44px;min-height:44px;padding:6px}
.game-shell .opponent-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px}
.game-shell .opponent-head strong{font-size:.9375rem;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.game-shell .opponent-head .country-name{display:inline}
.game-shell .opponent-count{font-size:.875rem;line-height:1.4;margin:0;white-space:nowrap}
.game-shell .hand-footer .selection-summary{color:var(--ink);line-height:1.5}
@media(max-width:1000px){
 .game-shell .topbar .text-button,.game-shell #change-material{font-size:.8125rem}
 .game-shell .game-meta h1,.game-shell .game-meta small,.game-shell .game-meta .text-button{font-size:.875rem}
 .game-shell .opponent-head strong,.game-shell .opponent-count{font-size:.875rem}
 .game-shell .hand-footer .selection-summary{font-size:.875rem}
 .game-shell .opponent{padding:4px}
}
/* At enlarged text sizes, the whole play region can scroll as well as the hand. */
.game-shell:has(.large-text){height:auto;min-height:100dvh;overflow:visible}
.game-shell:has(.large-text) .game-screen,.game-shell:has(.large-text) .game-layout{flex:none;overflow:visible}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .game-shell .opponents{flex-direction:column}
 .game-shell .opponent{width:100%}
 .game-shell .opponent-head .avatar{display:grid}
}

/* Relation count is supplied by the course data; all courses use the same game UI. */
.relations.relations-five { grid-template-columns: repeat(6,minmax(0,1fr)); }
.relations-five > * { grid-column: span 2; }
.relations-five > :nth-child(n+4) { grid-column: span 3; }
.tone-structure { --tone:#6c4290; --tint:#f5effa; }
.tone-completion { --tone:#12676a; --tint:#eaf7f6; }
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
 .relations.relations-five { grid-template-columns: minmax(0,1fr); }
 .relations-five > *,.relations-five > :nth-child(n+4) { grid-column: auto; }
}

.result-context{font-size:1rem;color:#526774;line-height:1.6;overflow-wrap:anywhere}

/* 2.1.13: common collection and flashcard views, all courses and platforms. */
.collection-tools{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:16px 0}.collection-tools label{display:grid;gap:6px;flex:1;min-width:150px}.collection-tools input,.collection-tools select{width:100%;min-height:44px;font-size:1rem;padding:10px;border:1px solid #b5c7cd;border-radius:10px;background:white;color:#193546}.collection-count{font-size:1.125rem;font-weight:700;color:#15785b}.catalog-id{display:block;font-size:.875rem;font-weight:600;letter-spacing:.04em;color:#526874}.collection-card{position:relative;min-width:0;overflow-wrap:anywhere}.collection-card.is-owned{background:#e8f5ee;border-color:#287a62}.collection-card.is-unowned{background:#eef0ed;color:#43574d;border-color:#cdd4d0}.collection-badge{display:inline-block;margin:8px 0 0;font-size:.875rem;padding:3px 8px;border-radius:12px;background:#e1eee7;color:#225e49}.is-unowned .collection-badge{background:#dce1dd;color:#43574d}.collection-placeholder{color:#586962}.flashcard-view{max-width:760px;margin:auto}.flash-face{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:28px;min-height:280px;padding:28px 20px;border:2px solid #a7c6b9;border-radius:20px;background:white;color:#193546;box-shadow:0 4px 0 #dbe6df;cursor:pointer;text-align:center}.flash-term{font-size:clamp(1.625rem,5vw,2.375rem);overflow-wrap:anywhere}.flash-meaning{font-size:clamp(1.25rem,4vw,1.75rem);line-height:1.65;overflow-wrap:anywhere}.flash-navigation,.flash-ratings,.flash-options,.flash-complete{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.flash-navigation>button,.flash-ratings>button{flex:1;min-height:48px}.flash-options{justify-content:space-between}.flash-progress{text-align:center;font-weight:700}.flash-complete{flex-direction:column}.flash-empty{padding:28px 0}.playing-catalog-id{align-self:flex-start;font-size:.75rem;line-height:1.2;margin:0 0 4px;flex-shrink:0}.discard-pair .catalog-id{font-size:.75rem}.flash-face:focus-visible,.collection-card button:focus-visible{outline:3px solid #1d64b3;outline-offset:3px}@media(max-width:600px){.collection-tools{gap:10px}.collection-view .card-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-card{padding:14px!important}.collection-card h2{font-size:1.125rem}.collection-card p{font-size:.875rem}.collection-card button{font-size:.875rem;padding:10px 8px}.flash-face{min-height:250px}.flash-options{gap:8px}.playing-catalog-id{font-size:.75rem}}

.collection-toast{position:fixed;top:max(70px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:50;max-width:calc(100% - 24px);padding:12px 18px;background:#116846;color:#fff;border-radius:14px;box-shadow:0 3px 16px #0002;font-size:1rem;font-weight:700;pointer-events:none;text-align:center}.collection-toast[hidden]{display:none}

/* Course-wide catalog. Empty grid tracks persist when search narrows results. */
html{scrollbar-gutter:stable}
.collection-tools #card-search{direction:ltr;text-align:left;unicode-bidi:plaintext}
.collection-view .card-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.collection-view .collection-card{height:var(--catalog-card-height,320px);min-height:0;box-sizing:border-box}
.collection-view .collection-card .collection-badge{align-self:flex-start}
.collection-view .collection-card h2{margin-top:12px}
.collection-view .collection-card p{margin-top:0}
.collection-back{position:relative;width:100%;padding:0!important;font:inherit;text-align:left;white-space:normal;cursor:pointer;gap:0;box-shadow:none;isolation:isolate;overflow:hidden}
.collection-back:hover{border-color:#829b91}
.collection-back:focus-visible{outline:3px solid #1d64b3;outline-offset:3px}
.collection-back-art{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;margin:0}
.collection-back-art[hidden]{display:none}
.collection-back .catalog-id{position:absolute;top:20px;left:20px;max-width:calc(100% - 40px);padding:2px 6px;margin:-2px -6px;background:#ffffffeb;border-radius:5px;color:#334d58}
.collection-back-fallback{margin:auto;align-self:center;color:#43574d;font-weight:600}
.collection-back-fallback[hidden]{display:none}
#collection-how{text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 0}
.catalog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}
.catalog-tabs button{padding:10px 12px;min-height:44px;border:1px solid #b5c7cd;border-radius:8px;background:white;color:var(--ink);font:inherit;cursor:pointer}
.catalog-tabs [aria-selected="true"]{background:#e8f5ee;border:2px solid #15785b;font-weight:700}
.catalog-tabs button:focus-visible{outline:3px solid #1d64b3;outline-offset:2px}
@media(max-width:600px){.collection-back .catalog-id{top:14px;left:14px;max-width:calc(100% - 28px)}.collection-view .card-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-tabs{gap:6px}.catalog-tabs button{padding:10px 8px}}

/* Shared phone layout: the same card face in Web, iOS and Android. */
@media(max-width:760px){
 .collection-view{margin-top:20px}
 .collection-view .collection-tools{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;margin:10px 0}
 .collection-view .collection-tools label{min-width:0;font-size:.8125rem;line-height:1.4}
 .collection-view .catalog-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 8px}
 .collection-view .catalog-tabs button{font-size:.875rem;padding:8px 4px}
 .collection-view .card-library-grid{grid-template-columns:repeat(3,minmax(0,128px));justify-content:center;gap:8px;margin:12px 0}
 .collection-view .collection-card{width:100%;max-width:100%;height:auto;min-height:9.5rem;aspect-ratio:3/4;padding:7px!important;border-radius:8px}
 .collection-view .collection-card .catalog-id{font-size:.625rem;line-height:1.3;letter-spacing:.01em}
 .collection-view .collection-card .collection-badge{font-size:.625rem;line-height:1.3;margin-top:3px;padding:1px 3px}
 .collection-view .collection-card h2{font-size:.9375rem;line-height:1.3;margin:auto 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;flex-shrink:0}
 .collection-view .collection-card>p{display:none}
 .collection-view .collection-card .relation-tag{font-size:.6875rem;margin:0 0 6px}
 .collection-view .collection-card .secondary{font-size:.75rem;line-height:1.3;min-height:44px;padding:6px 2px}
 .collection-view .collection-back{padding:0!important}
 .collection-view .collection-back .catalog-id{top:7px;left:7px;max-width:calc(100% - 14px)}
}
