/*
 * Goi Mania 99 - shared brand and home entrance
 * A visual-only layer. Dictionary articles, AdSense, quiz data and local progress remain unchanged.
 */
.lex-header{background:rgba(255,255,255,.98);border-bottom:1px solid #e4e9ed;box-shadow:0 3px 14px rgba(18,48,78,.065)}
.lex-header::before{height:2px;background:linear-gradient(90deg,#2b7b9d,#c9384a,#2b7b9d)}
.lex-brand{gap:9px}
.lex-brand__mark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:0;border-radius:0;background:none;box-shadow:none;padding:0}
.lex-brand__mark svg{display:block;width:38px;height:38px;overflow:visible}
.lex-brand__name{color:#192b42;letter-spacing:-.03em;font-size:21px;font-weight:900;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-height:1.2}
.gm99-brand-number,.gm99-footer-number{color:#cf304a}
.lex-brand__sub{color:#536579;font-size:11px;font-weight:750;letter-spacing:.015em;line-height:1.4}
.lex-nav a{color:#284159}
.lex-nav a:hover{color:#196b9a}
.lex-nav .gq-nav-record{background:#185a88;color:#fff}
.lex-nav .gq-nav-record:hover{background:#123f63;color:#fff}
.lex-header__search{border:1px solid #d8e2ec;background:#fff;color:#1e536e}
.lex-mobile-nav{background:#fcfdff}
.lex-mobile-nav a{border-color:#dce5f0;color:#1c425d}
.lex-footer{background:#173049;border-top:3px solid #cb384c}
.lex-footer__desc,.lex-footer__links a{color:#e4eff6}
.lex-footer__brand{color:#fff}
.lex-footer__bottom{color:#cedbe6}
.gq-footer-sub{color:#cddfeb;letter-spacing:.04em}

/* Scenic, readable header in the same two-pillar spirit as Kanji Mania 99. */
body.home .gq-hero{position:relative;isolation:isolate;overflow:hidden;border-bottom:1px solid #dae7f2;min-height:390px;padding:48px 0 71px;background:
 radial-gradient(ellipse 41% 85% at 50% 40%,rgba(255,255,255,.99) 0%,rgba(255,255,255,.9) 48%,rgba(255,255,255,.48) 72%,transparent 100%),
 radial-gradient(circle at 10% 18%,rgba(251,243,199,.9),transparent 24%),
 linear-gradient(110deg,#a6daf4 0%,#d8effb 32%,#fff9e9 59%,#bde9df 100%);color:#1b3048}
body.home .gq-hero::before{content:"";position:absolute;inset:auto 0 0;height:110px;opacity:.72;background:linear-gradient(180deg,#add5c9,#75b7ac);clip-path:polygon(0 95%,0 72%,7% 58%,14% 76%,22% 31%,31% 74%,39% 51%,47% 89%,55% 42%,63% 83%,73% 39%,80% 72%,89% 29%,100% 67%,100% 100%);z-index:0}
body.home .gq-hero::after{content:"";position:absolute;inset:auto 0 0;height:63px;background:linear-gradient(180deg,#83b7a7,#548f87);clip-path:polygon(0 65%,8% 82%,18% 51%,28% 87%,42% 65%,50% 90%,64% 58%,73% 82%,84% 44%,94% 71%,100% 62%,100% 100%,0 100%);opacity:.58;z-index:0;pointer-events:none}
body.home .gq-hero__inner{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;min-height:290px;max-width:980px}
body.home .gq-hero__content{max-width:800px;min-width:0;width:100%;text-align:center}
body.home .gq-hero__eyebrow{display:block;margin:0 auto 6px;padding:0;background:none;border:0;border-radius:0;color:#24465f;font-size:14px;font-weight:850;line-height:1.5;letter-spacing:.04em;text-shadow:0 1px 2px #fff}
body.home .gq-hero h1{margin:0;color:#152740;font-size:clamp(44px,6vw,76px);font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:900;line-height:1.18;letter-spacing:-.06em;text-shadow:0 2px 7px rgba(255,255,255,.85)}
body.home .gm99-hero-number{color:#cc2845}
body.home .gq-hero__catch{color:#1c344e;margin:12px 0 8px;font-size:clamp(19px,2.6vw,26px);line-height:1.5}
body.home .gq-hero__catch em{color:#c52d45}
body.home .gq-hero__description{max-width:675px;margin:0 auto 18px;color:#304760;font-size:16px;line-height:1.85;font-weight:650;text-shadow:0 1px 3px #fff}
body.home .gq-hero__actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
body.home .gq-hero .gq-btn{min-height:51px;padding:11px 24px;border-radius:999px;box-shadow:0 6px 16px rgba(43,64,93,.11);font-size:16px}
body.home .gq-hero .gq-btn--gold{color:#fff!important;border:2px solid #fff;background:linear-gradient(110deg,#d5344e,#b92341)}
body.home .gq-hero .gq-btn--gold:hover{background:#a61d37;color:#fff!important}
body.home .gq-hero .gq-btn--outline{color:#1b5e8f!important;border:1px solid #c5d6e4;background:rgba(255,255,255,.95)}
body.home .gq-hero .gq-btn--outline:hover{background:#e7f3ff}
body.home .gq-hero__notes{display:flex;justify-content:center;gap:7px 17px;margin:16px auto 0;color:#38536a;font-size:12px;line-height:1.65}
body.home .gq-hero__notes span::before{color:#197a63;border:1px solid #8bbba7;background:#f9fff9}

/* Two clear paths: test ability or build vocabulary. */
.gm99-two-ways{padding:40px 0 47px;background:#fff}
.gm99-section-heading{text-align:center;margin:0 auto 25px;max-width:730px}
.gm99-section-kicker{margin:0 0 4px;color:#b92a48;font-size:13px;font-weight:900;letter-spacing:.12em}
.gm99-section-heading h2{padding:0;margin:0;color:#1b3554;background:none;border:0;box-shadow:none;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:900;font-size:clamp(25px,3.4vw,35px);line-height:1.4}
.gm99-section-heading>p:last-child{margin:7px 0 0;color:#576c80;font-size:15px;line-height:1.65}
.gm99-pillar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.gm99-pillar{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d5e0ec;border-radius:18px;background:#fff;box-shadow:0 9px 22px rgba(25,52,79,.075);color:#233c56;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease}
.gm99-pillar:hover{transform:translateY(-3px);box-shadow:0 14px 27px rgba(25,52,79,.14)}
.gm99-pillar:focus-visible{outline:3px solid #e6a03f;outline-offset:3px}
.gm99-pillar-visual{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:166px;overflow:hidden;text-align:center}
.gm99-pillar-visual--challenge{background:radial-gradient(circle at 72% 15%,rgba(255,241,173,.94),transparent 24%),linear-gradient(145deg,#75bbe0,#dcefff 48%,#7db7b2)}
.gm99-pillar-visual--learn{background:radial-gradient(circle at 82% 21%,rgba(255,244,191,.92),transparent 27%),linear-gradient(135deg,#95d2ad,#e8f5d4 51%,#fce5ba)}
.gm99-pillar-visual::after{content:"";position:absolute;z-index:-1;inset:auto 0 0;height:70%;opacity:.43;clip-path:polygon(0 92%,14% 46%,27% 81%,39% 24%,54% 84%,70% 38%,85% 78%,100% 29%,100% 100%,0 100%);background:#397b9e}
.gm99-pillar-visual--learn::after{background:#6b9f77;opacity:.32;clip-path:polygon(0 91%,0 74%,18% 55%,28% 77%,40% 35%,55% 67%,69% 44%,81% 72%,100% 38%,100% 100%)}
.gm99-pillar-symbol{position:relative;display:grid;place-items:center;width:82px;height:82px;line-height:1;font-size:50px;border-radius:22px;background:rgba(255,255,255,.78);border:2px solid rgba(255,255,255,.83);box-shadow:0 5px 19px rgba(22,55,69,.13)}
.gm99-pillar-landmark{position:relative;padding:4px 16px;border-radius:999px;background:rgba(18,60,85,.84);color:#fff;font-size:13px;font-weight:900;letter-spacing:.05em}
.gm99-pillar--learn .gm99-pillar-landmark{background:rgba(26,99,73,.86)}
.gm99-pillar-copy{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:20px 23px 23px}
.gm99-pillar-label{font-size:12px;font-weight:900;color:#1b667f;letter-spacing:.07em}
.gm99-pillar--challenge .gm99-pillar-label{color:#b82b48}
.gm99-pillar-title{display:block;color:#1b3757;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:clamp(20px,2.2vw,25px);font-weight:900;line-height:1.38}
.gm99-pillar-desc{color:#495c6f;font-size:15px;line-height:1.82}
.gm99-pillar-meta{margin-top:auto;color:#59778a;background:#f1f6f9;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:750}
.gm99-pillar-cta{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:43px;margin-top:6px;padding:9px 21px;border-radius:999px;background:#175e90;color:#fff;font-size:15px;line-height:1.4;font-weight:900}
.gm99-pillar--challenge .gm99-pillar-cta{background:#c32e49}
.gm99-future-note{margin:18px 2px 0;color:#536b7d;font-size:13px;line-height:1.85;text-align:center}
.gm99-future-note strong{color:#254a65}
body.home .gq-word-search{background:#f6faff;border-top:1px solid #e3eaf3}
body.home .gq-word-search .lex-function-hero__head h2{color:#214c70}
body.home .gq-word-search .lex-main-search{background:#fff;border-color:#d7e5ef}
body.home .gq-word-search .lex-searchbox--main button{background:#17658f}
body.home .gq-word-search .lex-searchbox--main button:hover{background:#0b4d73}

/* Small-screen clarity: ample padding, two full-width buttons and one card per row. */
@media(max-width:950px){
 body.home .gq-hero{padding:41px 0 65px;min-height:0}
 body.home .gq-hero__inner{min-height:0}
 .gm99-pillar-grid{gap:13px}
}
@media(max-width:680px){
 .lex-brand__mark{width:35px;height:35px;flex-basis:35px}
 .lex-brand__mark svg{width:34px;height:34px}
 .lex-brand__name{font-size:17px}
 .lex-brand__sub{font-size:10px;letter-spacing:0}
 body.home .gq-hero{padding:32px 0 55px}
 body.home .gq-hero__eyebrow{font-size:12px}
 body.home .gq-hero h1{font-size:clamp(34px,9vw,49px);line-height:1.22}
 body.home .gq-hero__catch{font-size:clamp(18px,4.8vw,22px)}
 body.home .gq-hero__description{font-size:15px;line-height:1.78}
 body.home .gq-hero__actions{flex-direction:column;max-width:360px;margin:auto}
 body.home .gq-hero .gq-btn{width:100%;min-height:49px;padding:10px 14px}
 body.home .gq-hero__notes{gap:5px 12px;font-size:11px;margin-top:13px}
 .gm99-two-ways{padding:32px 0 36px}
 .gm99-section-heading{margin-bottom:20px}
 .gm99-pillar-grid{grid-template-columns:1fr}
 .gm99-pillar-visual{min-height:151px}
 .gm99-pillar-copy{padding:18px}
 .gm99-pillar-desc{font-size:15px}
 .gm99-future-note{text-align:left;margin-top:17px}
}
@media(max-width:370px){.lex-brand__name{font-size:15px}.lex-brand__sub{font-size:9px}body.home .gq-hero h1{font-size:clamp(30px,8.8vw,34px)}}
@media(prefers-reduced-motion:reduce){.gm99-pillar{transition:none}}
