/* Mac/Linux download chooser. Mirrors the launcher's update popup. */
/* Windows and Mac/Linux buttons side by side (they stack only on narrow screens).
   download-modal.js shifts the row so it is centered in the step, not under the text. */
.dl-row { display: flex; gap: 10px; max-width: 620px; }
.dl-row .pill-btn { flex: 1 1 0; min-width: 0; margin: 0; padding-left: 12px; padding-right: 12px; text-align: center; white-space: nowrap; box-sizing: border-box; }
@media (max-width: 600px) { .dl-row { flex-direction: column; } }
html.dl-open { overflow: hidden; }
.dl-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.vine { position: absolute; overflow: visible; pointer-events: none; shape-rendering: geometricPrecision; filter: blur(.3px); }
.vine .stem { fill: none; stroke: #0f4a1d; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.vine .stem-body { fill: none; stroke: #49b02c; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.vine .stem-hi { fill: none; stroke: #e6ffb4; stroke-width: 1.3; stroke-linecap: round; opacity: .9; transform: translate(-.6px,-.8px); stroke-dasharray: 92 100; stroke-dashoffset: -4; }
.vine .leaf-o { fill: #0f4a1d; stroke: #0f4a1d; stroke-width: .45; stroke-linejoin: round; }
.vine .leaf { fill: url(#leafGloss); stroke: none; }
.vine .leaf-hi { fill: none; stroke: rgba(240,255,200,.9); stroke-width: .1; stroke-linecap: round; }
.vine .sway { transform-origin: 0 0; animation: clover-sway 6.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes clover-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes v-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes v-pop { 0% { transform: scale(0); } 65% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes v-fade { from { opacity: 0; } }
.vine.grow .stem, .vine.grow .stem-body { stroke-dasharray: 100; stroke-dashoffset: 100; animation: v-draw 1.25s cubic-bezier(.4,.05,.3,1) forwards; animation-delay: var(--base, 0s); }
.vine.grow .leaf, .vine.grow .leaf-o, .vine.grow .leaf-hi { transform: scale(0); animation: v-pop .55s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(var(--g, 0s) + var(--base, 0s) + .18s); }
.vine.grow .stem-hi { animation: v-fade .5s calc(1.15s + var(--base, 0s)) backwards; }

.dl-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,12,16,.78); backdrop-filter: blur(3px); animation: dl-ov-in .25s ease; }
.dl-overlay.hidden { display: none; }
@keyframes dl-ov-in { from { opacity: 0; } }
.dl-card { --base: .2s; position: relative; width: 460px; max-width: 100%; box-sizing: border-box; padding: 30px 28px 24px; text-align: center; background: linear-gradient(180deg, rgba(20,120,110,.62), rgba(5,32,34,.94)); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 40px rgba(0,0,0,.6); animation: dl-card-in .38s cubic-bezier(.2,1.2,.4,1); }
@keyframes dl-card-in { from { transform: translateY(10px) scale(.94); opacity: 0; } }
.dl-card .ucorner { width: 92px; height: 72px; z-index: 3; }
.dl-card .ucorner.tl { top: -21px; left: -12px; }
.dl-card .ucorner.tr { top: -21px; right: -13px; transform: scaleX(-1); }
.dl-card .ucorner.bl { bottom: -15px; left: -11px; transform: scaleY(-1); width: 70px; height: 54px; }
.dl-card .ucorner.br { bottom: -15px; right: -11px; transform: scale(-1,-1); width: 70px; height: 54px; }
.dl-card h2 { margin: 0 0 8px; font-family: "FreeRealms", Tahoma, sans-serif; font-size: 24px; letter-spacing: .5px; color: #a8f0c6; text-shadow: 0 1px 1px rgba(0,0,0,.4); font-weight: normal; }
.dl-card p { margin: 0 auto 14px; max-width: 360px; font-size: 13.5px; color: #cfeee7; line-height: 1.45; }
.dl-card p.dl-note { margin: 14px auto 0; font-size: 12.5px; color: #9fd8cd; }
.dl-card .dl-note b { color: #a8f0c6; }
.dl-card .hidden { display: none; }
.dl-close { position: absolute; top: 8px; right: 12px; z-index: 4; background: none; border: 0; color: #cfeee7; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; opacity: .8; }
.dl-close:hover { opacity: 1; color: #fff; }

.dl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .dl-choices { grid-template-columns: 1fr; } }
.dl-view { animation: dl-view-in .22s ease; }
@keyframes dl-view-in { from { opacity: 0; transform: translateX(8px); } }
.dl-card h2.dl-h { margin: 0 0 8px; }
button.dl-btn { font: inherit; cursor: pointer; width: 100%; }
.dl-back { margin-top: 14px; background: none; border: 0; padding: 4px 8px; font: inherit; font-size: 13px; color: #a8f0c6; cursor: pointer; opacity: .85; }
.dl-back:hover { opacity: 1; text-decoration: underline; }
.dl-back:focus-visible { outline: 2px solid #a8f0c6; outline-offset: 2px; border-radius: 4px; }
.dl-btn { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 12px; border-radius: 26px; text-decoration: none; color: #fff; background: #5a9c12; border: 1px solid #1e4a0c; text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 4px rgba(0,0,0,.35); }
.dl-btn::before { content: ""; position: absolute; top: 2px; left: 3px; right: 3px; height: 55%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.dl-btn:hover { filter: brightness(1.08); }
.dl-btn:active { filter: brightness(.95); transform: translateY(1px); }
.dl-btn:focus-visible { outline: 2px solid #a8f0c6; outline-offset: 2px; }
.dl-name { position: relative; font-family: "FreeRealms", Tahoma, sans-serif; font-weight: bold; font-size: 17px; line-height: 1.15; }
.dl-sub { position: relative; font-size: 12px; line-height: 1.25; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .vine .sway, .dl-overlay, .dl-card { animation: none !important; }
  .vine.grow .stem, .vine.grow .stem-body { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .vine.grow .leaf, .vine.grow .leaf-o, .vine.grow .leaf-hi, .vine.grow .stem-hi { transform: none; animation: none; }
}

/* Buttons switched off ("coming soon"): grayed out and not clickable. */
.dl-row .pill-btn.dl-off, .dl-row .pill-btn.dl-off:hover, .dl-row .pill-btn.dl-off:active { background: #5d6a68; border-color: #3a4443; color: #d6dedd; filter: none; transform: none; cursor: not-allowed; box-shadow: none; text-shadow: 0 1px 2px rgba(0,0,0,.5); opacity: .75; }
.dl-row .pill-btn.dl-off::before { opacity: .45; }
