/* Logo turtle disk loader, ported from bryansanders.com (Nov 19 2026). Universe tokens in Studio Works colors. */
#turtle{--brand:#47408b;--brand-ink:#faf6ee;--ink:#121010;--ink-soft:#3d3630;--paper:#faf6ee;--card:#fffaf0;--rule:#c9bda6;--radius:4px;
--shadow:0 1px 0 rgba(0,0,0,.04),0 8px 24px -14px rgba(34,29,23,.35);--err-bg:#fff1ee;--err-ink:#8a1f14;--c-turtle:#00635f;--c-hamlet:#42663a;--c-civic:#1b4a76;--c-toys:#c0392b;
--f-mono:"IBM Plex Mono","Plex Mono Fallback",ui-monospace,monospace;--f-crt:"VT323","IBM Plex Mono","Plex Mono Fallback",monospace;--f-voice:"IBM Plex Sans","Plex Sans Fallback",ui-sans-serif,system-ui,sans-serif;font-family:"IBM Plex Sans","Plex Sans Fallback",ui-sans-serif,system-ui,sans-serif;color:var(--ink)}
#turtle .btn{display:inline-block;font:500 14px var(--f-mono);padding:10px 16px;border-radius:var(--radius);background:var(--ink);color:var(--paper);text-decoration:none;border:2px solid var(--ink);cursor:pointer}
#turtle .btn:hover{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
#turtle .btn.ghost{background:transparent;color:var(--ink)}
#turtle .btn.ghost:hover{color:var(--brand-ink);background:var(--brand)}
#turtle .kicker{font:500 13px var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 6px}
#turtle .vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dl-ghost{--brand:#47408b;--ink:#121010;--paper:#faf6ee;--card:#fffaf0;--rule:#c9bda6;--f-mono:"IBM Plex Mono","Plex Mono Fallback",ui-monospace,monospace}
.turtle-machine{margin-top:40px;background:var(--card);border:2px solid var(--ink);padding:clamp(14px,2.4vw,28px);box-shadow:8px 8px 0 var(--turtle)}
.turtle-machine .disk-sound-credit{font:11px var(--mono);color:#5a524a;margin:10px 0 0}
.turtle-machine .disk-sound-credit a{text-decoration:underline}
#turtle{ grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(16px, 4vw, 40px); align-items: start; border-top: 1px solid var(--rule); padding-top: clamp(20px, 3vw, 32px); }#turtle .turtle-stage{ position: relative; width: 100%; max-width: 400px; }#turtle canvas{ display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }#turtle .turtle-sprite{ position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-50%,-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 16px solid var(--brand); pointer-events: none; }#turtle .turtle-panel .kicker{ margin-bottom: 6px; }#turtle .turtle-note{ margin: 0 0 14px; font-size: 16px; color: var(--ink-soft); max-width: 48ch; }#turtle:not(.ready) .turtle-ctl{ visibility: hidden; }#turtle .turtle-presets{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }#turtle .turtle-label{ display: block; font: 500 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }#turtle textarea{ width: 100%; font: 400 14px/1.45 var(--f-mono); padding: 10px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); resize: vertical; }#turtle .turtle-help{ margin: 4px 0 0; font: 400 13px var(--f-mono); color: var(--ink-soft); }#turtle .go{ margin-top: 10px !important; }#turtle .turtle-err{ margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--c-toys); background: var(--err-bg); font: 500 14px var(--f-mono); color: var(--err-ink); }#turtle .turtle-status{ margin: 10px 0 0; font: 400 14px var(--f-mono); color: var(--ink-soft); min-height: 1.5em; }#turtle .turtle-credit{ margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 820px){#turtle{ grid-template-columns: 1fr; }#turtle .turtle-stage{ max-width: none; }}#turtle .turtle-panel,#turtle .turtle-stage{ min-width: 0; max-width: 100%; }#turtle .turtle-more{ margin: 6px 0 0; font: 500 15px var(--f-mono); }#turtle .turtle-more a:hover{ color: var(--ink); }#turtle .play .turtle{ border-top: 0; padding-top: 0; }#turtle .invite .turtle{ display: block; border-top: 1px solid var(--rule); padding-top: 18px; }#turtle .dl-head .turtle-note{ max-width: 70ch; }.dl-deck{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: center; margin: 4px 0 20px; }.dl-shelf{ list-style: none; margin: 0; padding: 6px 4px 12px; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; min-width: 0; }.dl-shelf li{ flex: none; scroll-snap-align: start; }.dl-disk{
  position: relative; display: block; width: 118px; height: 118px; padding: 0; border: 0; border-radius: 3px; cursor: grab;
  background: #1b1918; color: inherit; font: inherit; touch-action: pan-x; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px #3a3532, 0 6px 14px -8px rgba(0,0,0,.6); transition: transform .15s, opacity .2s;
}.dl-disk::before{ content: ""; position: absolute; left: 50%; top: 58%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 7px #2b2725; }.dl-disk::after{ content: ""; position: absolute; left: 50%; bottom: 7px; width: 14px; height: 26px; margin-left: -7px; border-radius: 7px; background: #5a514b; }.dl-label{
  position: absolute; left: 8px; right: 14px; top: 7px; min-height: 34px; padding: 3px 6px; border-radius: 1px; transform: rotate(-1.5deg);
  background: #fbf7ea repeating-linear-gradient(transparent 0 11px, #b9cbe6 11px 12px); background-position: 0 4px;
  font: italic 400 13px/1.15 var(--f-voice); color: #1f3f8f; text-align: left; overflow-wrap: anywhere;
  box-shadow: inset 0 3px 0 var(--c-toys);
}.dl-shelf li:nth-child(2) .dl-label{ transform: rotate(1deg); box-shadow: inset 0 3px 0 var(--c-hamlet); }.dl-shelf li:nth-child(3) .dl-label{ transform: rotate(-.5deg); box-shadow: inset 0 3px 0 var(--c-civic); }.dl-shelf li:nth-child(4) .dl-label{ transform: rotate(.8deg); box-shadow: inset 0 3px 0 var(--rule); color: #6b6560; }.dl-disk:hover{ transform: translateY(-3px); }.dl-disk.in,.dl-disk.lifted{ opacity: .35; transform: none; }.dl-ghost{ position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: .95; transition: none; box-shadow: 0 18px 30px -10px rgba(0,0,0,.6); }.dl-drive{
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "slot slot" "read eject"; gap: 10px 12px; align-items: center;
  padding: 14px 14px 12px; border-radius: var(--radius); background: linear-gradient(#e7dcc6, #d6c9ae); border: 1px solid #a99c82;
  box-shadow: inset 0 1px 0 #f6efdf, var(--shadow);
}.dl-slot{ grid-area: slot; position: relative; display: block; height: 16px; border-radius: 3px; background: #1d1a17; box-shadow: inset 0 2px 3px #000; }.dl-lever{ position: absolute; left: 50%; top: -6px; width: 40px; height: 28px; margin-left: -20px; border-radius: 3px; background: linear-gradient(#cfc2a6, #b4a687); border: 1px solid #8e8169; transition: transform .2s; }.dl-drive.full .dl-lever{ transform: rotate(90deg); }.dl-led{ position: absolute; right: 14px; top: 38px; width: 10px; height: 6px; border-radius: 1px; background: #4a2a22; }.dl-drive.busy .dl-led{ background: #ff4a2a; box-shadow: 0 0 8px #ff4a2a; animation: dl-blink .16s steps(2) infinite; }.dl-drive.over{ outline: 3px dashed var(--c-turtle); outline-offset: 4px; }
@keyframes dl-blink{50%{ opacity: .3; } }.dl-read{ grid-area: read; font: 400 20px/1 var(--f-crt); color: #2c2620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; padding-right: 18px; }.dl-drive .dl-mini{ grid-area: eject; }.dl-mini{ font: 500 13px var(--f-mono); padding: 6px 10px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; }.dl-mini:hover{ color: var(--brand); border-color: var(--brand); }.dl-mini[aria-pressed="false"]{ color: var(--ink-soft); border-style: dashed; }.dl-work{ display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }.dl-left{ min-width: 0; }#turtle .dl-left .turtle-stage{ max-width: none; }.dl-orig{ margin-top: 12px; }.dl-orig-btn{ display: inline-flex !important; align-items: center; gap: 12px; width: auto !important; font: 500 14px var(--f-mono) !important; color: var(--brand) !important; }.dl-orig-btn[hidden]{ display: none !important; }.dl-orig-btn img{ width: auto !important; max-width: 120px; max-height: 96px; border-width: 4px !important; }.crt{ background: #0f1410; border-radius: 10px; padding: 10px 12px 12px; box-shadow: inset 0 0 0 2px #2a312b, inset 0 0 40px rgba(0,0,0,.6), var(--shadow); }.crt-bar{ display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font: 400 20px/1 var(--f-crt); color: #7fe39a; border-bottom: 1px solid #2c4a33; padding-bottom: 6px; }.crt-edit{ font: 400 18px/1 var(--f-crt); color: #0f1410; background: #7fe39a; border: 0; border-radius: 2px; padding: 3px 8px; cursor: pointer; }#turtle .crt-lines,#turtle .crt-text{
  display: block; width: 100%; height: 260px; margin: 0; overflow: auto; font: 400 14px/1.5 "IBM Plex Mono","Plex Mono Fallback", ui-monospace, monospace; color: #9cf5b0;
  background: repeating-linear-gradient(rgba(255,255,255,.025) 0 1px, transparent 1px 3px); text-shadow: 0 0 6px rgba(127,227,154,.35);
}.crt-lines{ list-style: none; padding: 0 0 0 3.2em; counter-reset: ln; cursor: text; white-space: pre; }.crt-lines li{ counter-increment: ln; position: relative; padding-right: 8px; }.crt-lines li::before{ content: counter(ln); position: absolute; left: -3.2em; width: 2.4em; text-align: right; color: #3f7a4f; }.crt-lines li.cur{ background: #9cf5b0; color: #0f1410; text-shadow: none; }#turtle .crt-text{ border: 1px solid #2c4a33; border-radius: 2px; padding: 4px 8px; resize: vertical; caret-color: #9cf5b0; }#turtle .crt-text:focus-visible{ outline: 2px solid #7fe39a; outline-offset: 2px; }.dl-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }.dl-row .btn{ padding-left: 14px; padding-right: 14px; }.dl-speed{ display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--f-mono); color: var(--ink-soft); }.dl-speed input{ width: 96px; accent-color: var(--brand); }
@media (max-width: 860px){.dl-deck{ grid-template-columns: 1fr; }.dl-work{ grid-template-columns: 1fr; }}
@media (max-width: 520px){.dl-disk{ width: 100px; height: 100px; }#turtle .crt-lines,#turtle .crt-text{ height: 220px; font-size: 13px; }}
@media (prefers-reduced-motion: reduce){.dl-disk,.dl-lever{ transition: none; }.dl-drive.busy .dl-led{ animation: none; }}.mk-disk .dl-disk{ cursor: default; }.mk-disk .dl-disk:hover{ transform: none; }#turtle .crt-lines[hidden],#turtle .crt-text[hidden]{ display: none; }.dl-led{ right: 14px; top: 4px; }.dl-label{ font-size: 12px; line-height: 1.1; min-height: 30px; }.dl-head .kicker{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }#turtle .crt-lines{ position: relative; }
@keyframes onairblink{to{ visibility: hidden; } }
