/* A game's resource picker leads into an illustrated lesson, rulebook or video. */
#learn .learning-heading{align-items:end}
#learn .learning-heading h2{letter-spacing:-2.4px}
#learn .learning-playback{font-size:13px;min-height:44px;margin:0;padding:10px 0;color:#526c67}
#learn .learning-stage{display:grid;grid-template-columns:300px 1fr;gap:50px;height:auto;min-height:485px;padding:38px 55px;background:radial-gradient(ellipse at 80% 50%,#eef5e9,#dce9e3);border:1px solid #d6e3dc}
.learning-resource{width:100%;align-self:stretch;display:flex;flex-direction:column;align-items:center;padding:22px 18px 18px;border-radius:25px;background:#fff9;border:1px solid #fffc;box-shadow:0 16px 25px -15px #47665718}
.learning-cover{position:relative;height:152px;width:180px;display:grid;place-items:center}
.learning-cover:before{content:'';position:absolute;width:145px;height:145px;border-radius:50%;background:#d7e5dc}
.learning-cover>img{position:relative;max-height:145px;max-width:140px;object-fit:contain;filter:drop-shadow(0 12px 10px #385b5d20);transform:rotate(-7deg)}
.learning-resource h3{font-size:25px;margin:12px 0 17px;letter-spacing:-.7px}
#learn .learning-tabs{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:5px;width:100%;min-width:0;padding:0;border:0}
#learn .learning-tabs button{display:flex;width:100%;min-width:0;gap:13px;align-items:center;border-radius:13px;padding:13px 15px;min-height:49px;font-size:15px;font-weight:550;line-height:1.35;text-align:left;color:#5d716b;transition:background .3s,color .3s,box-shadow .3s}
#learn .learning-tabs button[aria-pressed=true]{background:#294f50;color:#fff;box-shadow:0 4px 12px #294f5020}
#learn .learning-tabs svg{width:23px;height:23px;flex-shrink:0}
#learn .learning-tabs button span{flex:1}
#learn .learning-tabs button i{font-style:normal;font-size:18px;opacity:.6}
.learning-viewer{width:100%;position:relative;min-width:0;display:grid;place-items:center;perspective:1200px}
#learn .lesson-panel{width:100%;height:345px;max-width:600px;box-shadow:0 28px 35px -25px #42635566;border:1px solid #ffffffd9}
#learn .lesson-panel[hidden]{display:none}
#learn .lesson-tutorial{padding:27px 28px 21px;transform:rotate(-2deg)}
#learn .lesson-topline{font-size:12px}#learn .lesson-topline>span:first-child{font-size:23px}
.tutorial-table{height:207px;position:relative;margin:4px auto 0;max-width:460px}
.tutorial-factory{position:absolute;width:146px;height:146px;top:32px;left:0}
.tutorial-factory>img{width:100%;height:100%}
.tutorial-factory>div{position:absolute;inset:36px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:rotate(-5deg)}
.tutorial-factory>div img{width:100%;filter:drop-shadow(0 2px 1px #343d5b30)}
.tutorial-wall,.rule-mini-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:14px;border-radius:14px;background:#e5d9b9;box-shadow:inset 0 0 0 1px #d5c89e}
.tutorial-wall{position:absolute;right:0;top:13px;width:180px;height:180px;transform:rotate(4deg)}
.tutorial-wall i,.rule-mini-wall i{background:#f6eedb;border:1px solid #cfc39f;border-radius:3px;box-shadow:inset 0 1px 3px #9e7b3120}
.tutorial-wall i:nth-child(6),.tutorial-wall i:nth-child(12),.rule-mini-wall i:nth-child(5){background:#168faf;border-color:#17839b}
.tutorial-wall i:nth-child(15),.rule-mini-wall i:nth-child(12){background:#e8b23e;border-color:#bf9529}
.tutorial-token{position:absolute;width:34px;height:34px;left:34px;top:68px;animation:tutorial-place 4.8s cubic-bezier(.4,0,.2,1) infinite;filter:drop-shadow(0 6px 3px #25496925);z-index:2}
.tutorial-cursor{position:absolute;left:53px;top:90px;z-index:3;font-size:34px;line-height:1;color:#fff;text-shadow:0 1px 4px #193e51;animation:tutorial-point 4.8s cubic-bezier(.4,0,.2,1) infinite}
#learn .lesson-bottom{font-size:15px}#learn .lesson-symbol{width:31px;height:31px}
.lesson-progress{display:flex;gap:5px;margin-top:13px}.lesson-progress i{height:3px;flex:1;background:#dbe1d5;overflow:hidden;border-radius:4px}.lesson-progress i:after{content:'';display:block;width:100%;height:100%;background:#6a9f88;transform-origin:left;animation:lesson-fill 4.8s linear infinite}.lesson-progress i:nth-child(2):after{animation-delay:-3.2s}.lesson-progress i:nth-child(3):after{animation-delay:-1.6s}
#learn .lesson-rules{height:318px;transform:rotate(2deg);border-radius:12px}
#learn .rule-page{font-size:14px;padding:34px 25px}
#learn .rule-diagram{width:105px;margin-block:32px 18px;gap:6px}#learn .rule-diagram img{width:100%;filter:drop-shadow(0 2px 2px #415b4830)}
#learn .rule-lines{margin-top:20px;height:55px}.rule-mini-wall{width:112px;height:112px;padding:8px;gap:3px;margin:19px auto;transform:rotate(-5deg)}
#learn .lesson-video{height:330px;transform:rotate(-2deg);background:#203d4c}
#learn .video-art{height:270px;background:#cfddcf;isolation:isolate}
#learn .video-art>img{width:255px;position:absolute;right:-15px;top:25px;transform:rotate(8deg);filter:drop-shadow(0 7px 8px #2a49443b)}
.video-factory{width:143px;height:143px;position:absolute;left:30px;top:60px;transform:rotate(-8deg)}
.video-factory>img:first-child{width:100%;height:100%}.video-factory>img:not(:first-child){position:absolute;width:35px;top:36px;left:36px}.video-factory>img:nth-child(3){left:73px}.video-factory>img:nth-child(4){top:73px}.video-factory>img:nth-child(5){top:73px;left:73px}
#learn .video-art>span{width:65px;height:65px;background:#fffdf4e6;color:#284d50;backdrop-filter:blur(10px);box-shadow:0 0 0 10px #ffffff30,0 8px 25px #1233}
#learn .lesson-video .lesson-bottom{padding:20px 24px;background:#294f50;font-size:15px}
.video-timeline{position:absolute;bottom:15px;left:20px;right:20px;height:4px;background:#fff7;border-radius:4px;overflow:hidden}#learn .video-timeline i{position:static;display:block;width:100%;height:100%;border-radius:0;background:white;box-shadow:none;transform-origin:left;animation:lesson-fill 4.8s linear infinite}
#learn:not([data-running=true]) .tutorial-token,#learn:not([data-running=true]) .tutorial-cursor,#learn:not([data-running=true]) .lesson-progress i:after,#learn:not([data-running=true]) .video-timeline i{animation-play-state:paused}
@keyframes tutorial-place{0%,18%{left:34px;top:68px;transform:rotate(-5deg) scale(1)}40%,78%{left:calc(100% - 160px);top:30px;transform:rotate(4deg) scale(1)}90%,100%{left:34px;top:68px;transform:rotate(-5deg) scale(1)}}
@keyframes tutorial-point{0%,10%{opacity:0;left:53px;top:105px}17%,22%{opacity:1;left:53px;top:90px}40%,65%{opacity:1;left:calc(100% - 140px);top:52px}75%,100%{opacity:0;left:calc(100% - 140px);top:65px}}
@keyframes lesson-fill{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}
@media(max-width:1100px){#learn .learning-stage{grid-template-columns:235px 1fr;gap:32px;padding:32px}.tutorial-factory{width:126px;height:126px}.tutorial-factory>div{inset:30px}.tutorial-wall{width:150px;height:150px;top:24px}.tutorial-token{width:29px;height:29px}#learn .lesson-panel{height:325px}#learn .lesson-tutorial{padding:25px 22px}.tutorial-table{height:195px}.learning-resource{padding-inline:13px}}
@media(max-width:760px){#learn .learning-heading{display:flex;align-items:end;gap:15px}#learn .learning-heading h2{font-size:38px;letter-spacing:-1.5px}#learn .learning-playback{font-size:11px;max-width:70px;flex-shrink:0}#learn .learning-stage{display:block;padding:22px 18px;min-height:0;border-radius:25px}.learning-resource{display:grid;grid-template-columns:65px 1fr;gap:0 17px;padding:0;border:0;background:none;box-shadow:none;border-radius:0}.learning-cover{height:76px;width:65px;grid-row:1}.learning-cover:before{width:66px;height:66px}.learning-cover>img{max-height:72px;max-width:60px}.learning-resource h3{margin:0;font-size:25px}#learn .learning-tabs{display:flex;grid-column:1/-1;gap:4px;margin-top:19px}#learn .learning-tabs button{flex:1;flex-direction:column;justify-content:center;font-size:12px;padding:11px 6px;gap:7px;min-height:65px}#learn .learning-tabs button span{flex:none;white-space:nowrap}#learn .learning-tabs button i{display:none}#learn .learning-tabs svg{width:19px;height:19px}.learning-viewer{margin-top:26px;min-height:283px}#learn .lesson-panel{height:282px;border-radius:15px}#learn .lesson-tutorial{padding:20px 18px}#learn .lesson-topline>span:first-child{font-size:20px}#learn .lesson-topline{font-size:10px}.tutorial-table{height:170px}.tutorial-factory{top:28px;width:113px;height:113px}.tutorial-factory>div{inset:27px}.tutorial-wall{width:137px;height:137px;top:15px;gap:4px;padding:11px}.tutorial-token{width:25px;height:25px}.tutorial-cursor{font-size:29px}#learn .lesson-bottom{font-size:12px;gap:8px}#learn .lesson-symbol{width:25px;height:25px}#learn .rule-page{font-size:11px;padding:26px 16px}#learn .rule-diagram{width:87px;margin-top:30px}#learn .video-art{height:225px}#learn .video-art>img{width:205px;right:-18px;top:19px}.video-factory{width:117px;height:117px;left:8px;top:65px}#learn .lesson-video .lesson-bottom{padding:18px 20px;font-size:13px}.video-factory>img:not(:first-child){width:28px;left:30px;top:30px}.video-factory>img:nth-child(3){left:59px}.video-factory>img:nth-child(4){top:59px}.video-factory>img:nth-child(5){top:59px;left:59px}}
@media(max-width:370px){#learn .learning-heading h2{font-size:32px}#learn .learning-stage{padding-inline:14px}#learn .learning-tabs button{font-size:11px;gap:4px}#learn .learning-tabs svg{width:16px}.tutorial-wall{width:113px;height:113px;top:25px;padding:9px;gap:3px}.tutorial-factory{width:94px;height:94px;top:35px}.tutorial-factory>div{inset:24px}.tutorial-token{width:23px;height:23px}#learn .lesson-topline>span:first-child{font-size:18px}}
@media(prefers-reduced-motion:reduce){#learn *,#learn *:after{animation:none!important;transition:none!important}}
