:root{
  --yellow:#ffe72f;
  --yellow-deep:#e0c200;
  --green:#27c643;
  --green-dark:#159b31;
  --red:#fb4137;
  --ink:#20242a;
  --muted:#6f7782;
  --line:#eceef1;
  --bg:#f7f8fa;
  --card:#ffffff;
  --shadow:0 10px 28px rgba(21,25,31,.10);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
button{font:inherit}
.is-hidden{visibility:hidden}
.loader{position:fixed;inset:0;z-index:9999;background:#050505;display:grid;place-items:center;align-content:center;gap:20px;transition:opacity .35s ease,visibility .35s ease}
.loader.hide{opacity:0;visibility:hidden}
.loader-logo{width:min(78vw,410px);aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 0 28px rgba(255,202,0,.17))}
.loader-dots{display:flex;gap:8px}.loader-dots span{width:7px;height:7px;border-radius:50%;background:#f4bf00;animation:pulse 1s infinite ease-in-out}.loader-dots span:nth-child(2){animation-delay:.16s}.loader-dots span:nth-child(3){animation-delay:.32s}@keyframes pulse{0%,100%{opacity:.25;transform:scale(.75)}50%{opacity:1;transform:scale(1.15)}}
.app{min-height:100vh;display:flex;flex-direction:column}
.topbar{height:72px;padding:0 max(16px,env(safe-area-inset-left));background:var(--yellow);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;box-shadow:0 2px 10px rgba(92,67,0,.14)}
.brand{border:0;background:transparent;display:flex;align-items:center;font-weight:800;color:#302800;padding:0;cursor:pointer;max-width:64%}.brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.main-nav{display:flex;align-items:center;gap:7px}.nav-link{min-width:48px;height:44px;border:2px solid rgba(75,57,0,.18);background:rgba(255,255,255,.34);border-radius:13px;font-weight:900;color:#4b3900;cursor:pointer;box-shadow:0 3px 0 rgba(21,155,49,.65);transition:transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease}.nav-link:hover{background:rgba(255,255,255,.52)}.nav-link:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(21,155,49,.65)}.nav-link.active{background:#fff4a6;border-color:var(--green);box-shadow:0 3px 0 var(--green-dark)}.menu-btn{border:0;background:transparent;min-width:42px;height:42px;border-radius:12px;font-weight:900;color:#4b3900;cursor:pointer;font-size:22px}
.menu-panel{position:fixed;top:62px;right:12px;z-index:30;width:210px;background:#fff;border-radius:12px;box-shadow:0 18px 45px rgba(0,0,0,.20);overflow:hidden;padding:8px}.menu-panel button{width:100%;border:0;background:#fff;text-align:left;padding:14px 15px;border-radius:10px;font-weight:750;cursor:pointer}.menu-panel button:hover{background:#f4f6f8}
main{width:min(100%,760px);margin:0 auto;flex:1;padding:18px 14px 34px}.page{display:none}.active-page{display:block}
.clock-strip{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:12px;font-size:13px;color:var(--muted);box-shadow:0 4px 14px rgba(0,0,0,.04)}.clock-strip strong{color:var(--green-dark);font-variant-numeric:tabular-nums}
.live-area{text-align:center;padding:62px 8px 14px}.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:800;color:var(--muted);margin:0 0 6px}.live-number{font-family:Arial,Helvetica,sans-serif;font-size:clamp(148px,44vw,220px);font-weight:800;line-height:.86;color:#22c63e;letter-spacing:-.07em;text-shadow:none;filter:none;font-variant-numeric:tabular-nums}.updated-row{display:flex;align-items:center;justify-content:center;gap:10px;margin:54px 0 12px}.live-check{width:29px;height:29px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#22c63e;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:900;line-height:1;flex:0 0 auto}.updated{margin:0;color:#151515;font-family:Arial,Helvetica,sans-serif;font-style:normal;font-weight:500;font-size:clamp(17px,4.6vw,23px);white-space:nowrap}.updated span{font-variant-numeric:tabular-nums}.market-line{max-width:500px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;padding:14px 12px;box-shadow:0 5px 18px rgba(0,0,0,.05)}.market-line>div:not(.divider){display:flex;flex-direction:column;gap:3px}.market-line span{font-size:11px;color:var(--muted);font-weight:800}.market-line strong{font-size:18px;font-variant-numeric:tabular-nums}.divider{height:34px;background:var(--line)}
.blinking{animation:blinkFour .85s linear 1}@keyframes blinkFour{0%,12%,25%,37%,50%,62%,75%,87%,100%{opacity:1}6%,18%,31%,43%,56%,68%,81%,93%{opacity:.08}}
.slots{display:grid;gap:18px;margin-top:12px}.result-card{background:#fb4137;border-radius:12px;overflow:hidden;box-shadow:0 12px 24px rgba(68,68,68,.25);border:0;color:#fff;padding:0 18px 18px}.result-card-head{height:82px;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-family:Arial,Helvetica,sans-serif;font-size:30px;border-bottom:1px solid rgba(255,255,255,.28)}.calendar{display:none}.result-row{display:grid;grid-template-columns:1fr 1.35fr .62fr;align-items:stretch}.result-row>div{min-width:0;padding:14px 5px 3px;text-align:center;display:flex;flex-direction:column;gap:7px}.result-row>div+div{border-left:0}.result-row span{font-family:Arial,Helvetica,sans-serif;font-size:16px;color:rgba(255,255,255,.72);font-weight:500}.result-row b{font-family:Arial,Helvetica,sans-serif;font-size:24px;font-weight:500;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-number{font-size:27px!important;font-weight:800!important;color:#ffef36!important}
.simple-page-card,.history-card,.policy-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px;margin-top:22px}.center-card{text-align:center;padding:42px 22px}.three-d-number{font-size:78px;font-weight:950;color:var(--green);letter-spacing:.05em}.center-card h2{margin:12px 0 6px}.center-card p,.history-card span,.policy-card{color:var(--muted);line-height:1.65}.page-title{text-align:center;padding:24px 8px 4px}.page-title h1{margin:0;font-size:28px}.page-title p{margin:5px 0;color:var(--muted)}.history-card{display:flex;flex-direction:column;gap:7px}.policy-card p:first-child{margin-top:0}.policy-card p:last-child{margin-bottom:0}
footer{text-align:center;padding:22px;color:#8a9098;font-size:12px}
@media (min-width:640px){main{padding:26px 24px 42px}.slots{grid-template-columns:1fr 1fr}.result-row{grid-template-columns:1fr 1.2fr .8fr}.brand span{font-size:18px}}

@media (max-width:420px){.result-card{padding-left:14px;padding-right:14px}.result-card-head{height:70px;font-size:25px}.result-row b{font-size:20px}.result-row span{font-size:13px}}

@media (max-width:520px){
  main{padding:0 14px 30px}
  .topbar{height:78px}
  .brand{max-width:58%}.brand span{font-size:16px}
  .main-nav{gap:2px}.nav-link,.menu-btn{min-width:44px;height:48px;font-size:19px}
  .live-area{padding-top:62px}
  .live-number{font-size:clamp(150px,46vw,188px)}
  .updated-row{margin-top:52px;margin-bottom:12px;gap:9px}
  .live-check{width:28px;height:28px;font-size:19px}
  .updated{font-size:clamp(16px,4.5vw,21px)}
  .result-card{padding:0 16px 18px}
  .result-card-head{height:80px;font-size:29px}
  .result-row{grid-template-columns:1fr 1.35fr .62fr}
  .result-row span{font-size:15px}.result-row b{font-size:22px}.slot-number{font-size:25px!important}
}

/* V8 live-number rhythm + 5PM/7PM Sheet result cards */
/* Same number stays for 16 seconds. Every 4 seconds it briefly disappears
   and reappears — no jump, scale, bounce, or position movement. */
.live-number{will-change:opacity}
.live-number.live-flash{animation:liveFlash .62s ease-in-out 1}
@keyframes liveFlash{
  0%,18%{opacity:1}
  42%,58%{opacity:0}
  82%,100%{opacity:1}
}
.live-check.is-live{animation:checkLive 1.35s ease-in-out infinite;will-change:transform,box-shadow}
@keyframes checkLive{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,198,62,.24)}
  50%{transform:scale(1.10);box-shadow:0 0 0 8px rgba(34,198,62,0)}
}
.app.result-frozen .live-number,
.app.result-frozen .live-check{animation:none!important;transform:none!important;box-shadow:none!important;opacity:1!important}
.market-slots{display:grid;gap:12px;margin-top:20px}
.market-card{display:grid;grid-template-columns:1.05fr 1fr 1fr;align-items:center;min-height:112px;padding:18px 18px;background:var(--red);border-radius:12px;color:#fff;box-shadow:0 12px 24px rgba(68,68,68,.25)}
.market-time{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.0;font-family:Arial,Helvetica,sans-serif}
.market-time strong:first-child{font-size:29px;font-weight:700}
.market-time strong:last-child{font-size:25px;font-weight:700;margin-top:7px}
.market-cell{text-align:center;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;font-family:Arial,Helvetica,sans-serif}
.market-cell span{font-size:16px;color:rgba(255,255,255,.72);font-weight:500}
.market-cell b{font-size:27px;color:#ffef36;font-weight:800;font-variant-numeric:tabular-nums}
@media (min-width:640px){.market-slots{grid-template-columns:1fr 1fr}.market-card{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:420px){.market-card{min-height:104px;padding:16px 14px}.market-time strong:first-child{font-size:26px}.market-time strong:last-child{font-size:23px}.market-cell span{font-size:14px}.market-cell b{font-size:24px}}

/* V9 compact vertical layout — same UI, less scrolling on phones */
html,body{min-height:100dvh}
.app{min-height:100dvh}

@media (max-width:520px){
  main{padding:0 14px 18px}
  .topbar{height:72px}

  /* Keep the live digits large, but remove excess empty space around them. */
  .live-area{padding:28px 8px 8px}
  .live-number{font-size:clamp(150px,46vw,188px);line-height:.84}
  .updated-row{margin-top:26px;margin-bottom:8px;gap:8px}

  /* Bring result cards upward and make each card slightly shorter. */
  .slots{gap:12px;margin-top:8px}
  .result-card{padding:0 14px 12px}
  .result-card-head{height:64px;font-size:27px}
  .result-row>div{padding:10px 4px 1px;gap:5px}
  .result-row span{font-size:14px}
  .result-row b{font-size:21px}
  .slot-number{font-size:24px!important}

  /* Compact the 5 PM / 7 PM section without changing its design. */
  .market-slots{gap:10px;margin-top:12px}
  .market-card{min-height:92px;padding:12px 14px}
  .market-time strong:first-child{font-size:25px}
  .market-time strong:last-child{font-size:22px;margin-top:5px}
  .market-cell{gap:5px}
  .market-cell span{font-size:14px}
  .market-cell b{font-size:23px}

  footer{padding:14px 0 8px}
}

@media (max-width:390px){
  .live-area{padding-top:22px}
  .updated-row{margin-top:22px}
  .result-card-head{height:60px;font-size:25px}
  .market-card{min-height:88px;padding-top:10px;padding-bottom:10px}
}

/* V13: obvious 2D/3D header buttons + visible back controls */
.subpage-bar{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px;min-height:64px;margin:0 -14px 6px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 10px rgba(0,0,0,.04)}
.subpage-bar h1{margin:0;text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:27px;line-height:1.1;color:var(--ink)}
.back-btn{width:44px;height:44px;border:1.5px solid #d9dde3;border-radius:12px;background:#fff;color:#1f2328;font-family:Arial,Helvetica,sans-serif;font-size:31px;line-height:1;font-weight:500;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.06);transition:transform .12s ease,background .12s ease}
.back-btn:active{transform:scale(.94);background:#f2f4f6}
.subpage-spacer{width:44px;height:44px}
.history-title-sub{padding-top:4px}
@media (max-width:520px){
  .main-nav{gap:5px}
  .nav-link{min-width:50px;height:48px;border-radius:13px;font-size:19px}
  .subpage-bar{min-height:60px;margin-bottom:2px}
  .subpage-bar h1{font-size:25px}
  .back-btn{width:42px;height:42px;font-size:29px}
}

/* FINAL history pages */
.history-title{padding-top:18px}
.history-title p{font-size:13px}
.history-list,.three-history-list{display:grid;gap:24px;margin-top:14px}
.history-day{display:grid;gap:10px}
.history-date{justify-self:center;background:var(--green);color:#fff;border-radius:999px;padding:8px 16px;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;box-shadow:0 5px 14px rgba(34,198,62,.18)}
.history-day-cards{display:grid;gap:10px}
.history-result-card{margin:0;box-shadow:0 8px 18px rgba(68,68,68,.18)}
.history-result-card .result-card-head{height:58px;font-size:24px}
.history-result-card .result-row>div{padding-top:9px}
.history-market-card{margin:0;min-height:88px;box-shadow:0 8px 18px rgba(68,68,68,.18)}
.history-empty{margin:24px auto 0;max-width:420px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;color:var(--muted);font-size:14px}
.history-empty[hidden]{display:none}
.three-history-list{gap:10px}
.three-history-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 16px;box-shadow:0 5px 14px rgba(0,0,0,.05)}
.three-history-date{font-size:14px;font-weight:700;color:#34383e}
.three-history-result{font-family:Arial,Helvetica,sans-serif;font-size:36px;line-height:1;font-weight:800;color:var(--green);font-variant-numeric:tabular-nums;letter-spacing:.03em}

/* FINAL phone-height tuning: preserve the accepted UI, reduce only vertical waste. */
@media (max-width:520px){
  .live-area{padding-top:16px;padding-bottom:4px}
  .updated-row{margin-top:17px;margin-bottom:5px}
  .slots{margin-top:5px;gap:9px}
  .result-card{padding-bottom:9px}
  .result-card-head{height:55px}
  .result-row>div{padding-top:7px;gap:4px}
  .market-slots{margin-top:9px;gap:8px}
  .market-card{min-height:82px;padding-top:8px;padding-bottom:8px}
  footer{padding-top:10px}

  .history-title{padding:15px 8px 2px}
  .history-title h1{font-size:25px}
  .history-list{gap:20px;margin-top:10px}
  .history-date{padding:7px 13px;font-size:13px}
  .history-day-cards{gap:8px}
  .history-result-card .result-card-head{height:52px;font-size:23px}
  .history-market-card{min-height:80px}
  .three-history-row{padding:11px 14px}
  .three-history-result{font-size:32px}
}

/* V14 color identity + history headers */
/* Home navigation: 2D = red, 3D = green. */
.topbar .nav-link[data-page="twoDHistory"]{
  background:#fb4137;
  border-color:#e9342b;
  color:#fff;
  box-shadow:0 3px 0 #c92e26;
}
.topbar .nav-link[data-page="twoDHistory"]:hover{background:#ff5148}
.topbar .nav-link[data-page="twoDHistory"]:active{box-shadow:0 1px 0 #c92e26}
.topbar .nav-link[data-page="twoDHistory"].active{
  background:#fb4137;
  border-color:#fff;
  box-shadow:0 0 0 2px rgba(251,65,55,.28),0 3px 0 #c92e26;
}
.topbar .nav-link[data-page="threeDHistory"]{
  background:#27c643;
  border-color:#18a935;
  color:#fff;
  box-shadow:0 3px 0 #159b31;
}
.topbar .nav-link[data-page="threeDHistory"]:hover{background:#31d34e}
.topbar .nav-link[data-page="threeDHistory"]:active{box-shadow:0 1px 0 #159b31}
.topbar .nav-link[data-page="threeDHistory"].active{
  background:#27c643;
  border-color:#fff;
  box-shadow:0 0 0 2px rgba(39,198,67,.26),0 3px 0 #159b31;
}

/* History / info pages use their own yellow top header, like the reference UI. */
.app.subpage-mode .topbar{display:none}
.app.subpage-mode main{padding-top:0}
.subpage-bar{
  position:sticky;
  top:0;
  z-index:25;
  background:var(--yellow);
  border-bottom:0;
  box-shadow:0 2px 10px rgba(92,67,0,.14);
  min-height:72px;
  margin-bottom:12px;
}
.subpage-bar h1{color:#1b1b1b;font-weight:700}
.subpage-bar .back-btn{
  border:0;
  background:transparent;
  box-shadow:none;
  color:#111;
  border-radius:50%;
}
.subpage-bar .back-btn:active{background:rgba(0,0,0,.07)}

/* 3D history: green result cards, white date, yellow result. */
.three-history-list{gap:18px;margin-top:18px}
.three-history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 96px;
  align-items:center;
  gap:12px;
  background:#49b653;
  border:0;
  border-radius:12px;
  padding:18px 20px;
  min-height:112px;
  box-shadow:0 10px 22px rgba(65,85,66,.20);
}
.three-history-date-wrap,.three-history-result-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}
.three-history-date-wrap{text-align:center}
.three-history-result-wrap{text-align:center}
.three-history-label{
  font-family:Arial,Helvetica,sans-serif;
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,.88);
}
.three-history-date{
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(21px,6vw,31px);
  line-height:1.1;
  font-weight:500;
  color:#fff;
}
.three-history-result{
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(34px,9vw,45px);
  line-height:1;
  font-weight:800;
  color:#ffef36;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
}

/* Keep 2D history red cards; date pill remains green. */
#twoDHistory .history-result-card,
#twoDHistory .history-market-card{background:#fb4137}

@media (max-width:520px){
  .subpage-bar{min-height:70px;margin-bottom:8px}
  .subpage-bar h1{font-size:27px}
  .three-history-row{min-height:104px;padding:16px 16px;grid-template-columns:minmax(0,1fr) 86px}
  .three-history-list{gap:14px;margin-top:12px}
}


/* V15: compact home 2D/3D buttons + Sheet-driven Holiday/Privacy pages */
.topbar .nav-link{
  min-width:42px;
  width:42px;
  height:40px;
  padding:0;
  border-radius:11px;
  font-size:22px;
  line-height:1;
}
@media (max-width:520px){
  .main-nav{gap:6px}
  .topbar .nav-link{min-width:42px;width:42px;height:40px;font-size:22px;border-radius:11px}
  .menu-btn{min-width:38px;width:38px;height:40px;font-size:21px}
}
.sheet-info-card{
  max-width:620px;
  margin:28px auto 0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:28px 22px;
  text-align:center;
  font-family:Arial,Helvetica,sans-serif;
}
.sheet-info-label{
  display:block;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
  margin-bottom:10px;
}
.sheet-info-value{
  display:block;
  color:var(--green-dark);
  font-size:clamp(32px,9vw,48px);
  line-height:1.15;
  font-weight:800;
  overflow-wrap:anywhere;
}
.sheet-info-text{
  color:#20242a;
  font-size:20px;
  line-height:1.55;
  font-weight:500;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media (max-width:520px){
  .sheet-info-card{margin-top:20px;padding:24px 18px;border-radius:14px}
  .sheet-info-text{font-size:18px}
}

/* V16: Home 2D / 3D buttons visually reduced to exactly 50% of V15. */
.topbar .nav-link{
  min-width:21px;
  width:21px;
  height:20px;
  padding:0;
  border-radius:6px;
  font-size:11px;
  line-height:1;
  position:relative;
}
/* Keep a comfortable invisible tap target while the visible button stays half-size. */
.topbar .nav-link::before{
  content:"";
  position:absolute;
  inset:-10px;
}
@media (max-width:520px){
  .main-nav{gap:10px}
  .topbar .nav-link{
    min-width:21px;
    width:21px;
    height:20px;
    font-size:11px;
    border-radius:6px;
  }
}

/* V20: PWA install banner — fixed floating overlay */
.install-banner{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%);
  z-index:9999;
  width:min(560px,calc(100vw - 24px));
  box-sizing:border-box;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto 28px;
  align-items:center;
  gap:9px;
  padding:10px 9px 10px 11px;
  margin:0;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  background:rgba(255,255,255,.98);
  box-shadow:0 14px 36px rgba(0,0,0,.24);
  font-family:Arial,Helvetica,sans-serif;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.install-banner[hidden],.install-guide[hidden]{display:none!important}
.install-app-icon{
  width:46px;
  height:46px;
  max-width:46px;
  max-height:46px;
  display:block;
  border-radius:11px;
  object-fit:cover;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.install-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.install-copy strong{font-size:14px;line-height:1.2;color:#16191d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.install-copy span{font-size:11px;line-height:1.25;color:#6d737b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.install-action{
  height:36px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:#20c83f;
  color:#fff;
  font:700 12px Arial,Helvetica,sans-serif;
  cursor:pointer;
  box-shadow:0 3px 0 #149e2e;
  white-space:nowrap;
}
.install-action:active{transform:translateY(1px);box-shadow:0 2px 0 #149e2e}
.install-close{
  width:28px;
  height:28px;
  padding:0;
  border:0;
  background:transparent;
  color:#737980;
  font:400 23px/28px Arial,Helvetica,sans-serif;
  cursor:pointer;
  border-radius:50%;
}
.install-close:active{background:#eef0f2}
.install-guide{
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(0,0,0,.48);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.install-guide-card{
  width:min(380px,100%);
  box-sizing:border-box;
  background:#fff;
  border-radius:20px;
  padding:24px 20px 20px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.30);
  font-family:Arial,Helvetica,sans-serif;
}
.install-guide-icon{width:72px;height:72px;border-radius:17px;object-fit:cover;box-shadow:0 5px 15px rgba(0,0,0,.18);margin-bottom:12px}
.install-guide-card h2{margin:0 0 10px;font-size:22px;color:#171a1e}
.install-guide-card p{margin:0;color:#5d646c;font-size:15px;line-height:1.55}
.install-guide-ok{margin-top:20px;width:100%;height:44px;border:0;border-radius:12px;background:#f2b900;color:#17130a;font:700 16px Arial,Helvetica,sans-serif;cursor:pointer}
@media(max-width:520px){
  .install-banner{
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    width:calc(100vw - 18px);
    grid-template-columns:40px minmax(0,1fr) auto 26px;
    gap:7px;
    padding:8px 7px 8px 9px;
    border-radius:14px;
  }
  .install-app-icon{width:40px;height:40px;max-width:40px;max-height:40px;border-radius:9px}
  .install-copy strong{font-size:13px}
  .install-copy span{font-size:10.5px}
  .install-action{height:34px;padding:0 10px;font-size:11.5px;border-radius:9px}
  .install-close{width:26px;height:26px;font-size:21px;line-height:26px}
}

