:root{font-family:Manrope,sans-serif;color:#f4ede1;background:radial-gradient(circle at top,rgba(211,122,59,.18),transparent 32%),radial-gradient(circle at 15% 20%,rgba(189,96,49,.16),transparent 25%),linear-gradient(135deg,#24150f,#130b09 45%,#0e0908);--panel: rgba(34, 21, 16, .76);--line: rgba(244, 237, 225, .12);--muted: rgba(244, 237, 225, .74);--scroll-track: rgba(255, 250, 242, .06);--scroll-thumb: rgba(215, 136, 66, .5);--scroll-thumb-hover: rgba(215, 136, 66, .72)}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}*::-webkit-scrollbar{width:12px}*::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:999px}*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--scroll-thumb),rgba(184,92,45,.72));border-radius:999px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--scroll-thumb-hover),rgba(184,92,45,.9));background-clip:padding-box}html,body,#root{margin:0;min-width:320px;min-height:100%;height:100%}body{overflow:hidden}button,input,a{font:inherit}img{display:block;max-width:100%}.app-shell{position:relative;min-height:100vh;height:100vh;overflow:hidden;padding:24px}.ambient{position:absolute;inset:auto;width:34rem;height:34rem;border-radius:50%;filter:blur(40px);opacity:.4;pointer-events:none}.ambient-left{top:-8rem;left:-10rem;background:radial-gradient(circle,rgba(211,122,59,.34) 0%,transparent 68%)}.ambient-right{right:-8rem;bottom:-10rem;background:radial-gradient(circle,rgba(123,161,154,.2) 0%,transparent 70%)}.home-screen,.player-screen{position:relative;z-index:1;height:calc(100vh - 48px);border:1px solid var(--line);border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 22%),var(--panel);box-shadow:0 30px 80px #00000059,inset 0 1px #ffffff14;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.home-screen{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px;padding:48px}.home-copy{max-width:700px}.eyebrow{margin:0 0 12px;letter-spacing:.3em;text-transform:uppercase;color:#f4ede19e;font-size:.78rem}h1,h2{margin:0;font-family:Cormorant Garamond,serif;font-weight:600}h1{font-size:clamp(3rem,6vw,5.5rem);line-height:.95}h2{font-size:2rem}.description{margin:22px 0 0;max-width:38rem;font-size:1.02rem;line-height:1.8;color:var(--muted)}.description.secondary{max-width:34rem}.home-preview{display:flex;flex-direction:column;align-items:center;gap:18px}.preview-box{width:min(100%,460px);padding:18px;border-radius:30px;border:1px solid rgba(244,237,225,.12);background:#fffaf20d;box-shadow:0 24px 50px #0000003d}.preview-image{width:100%;aspect-ratio:1 / 1;object-fit:cover;border-radius:20px}.start-button,.ghost-button,.recording-download{border:1px solid rgba(244,237,225,.16);color:#fff7ea;cursor:pointer;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}.start-button{min-width:220px;padding:16px 28px;border-radius:999px;background:linear-gradient(135deg,#d78842,#b85c2d);box-shadow:0 18px 28px #9f4e2347;font-weight:700;letter-spacing:.04em}.start-button:hover,.ghost-button:hover,.key-pill:hover,.key-pill.pressed,.recording-download:hover,.session-button:hover{transform:translateY(-2px)}.player-screen{display:grid;grid-template-rows:auto 1fr auto auto;padding:22px 24px 18px}.player-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px}.topbar-brand{display:flex;align-items:center;gap:12px}.brand-mark{font-family:Cormorant Garamond,serif;font-size:1.8rem;font-weight:600;letter-spacing:.02em}.ghost-button,.recording-download{padding:10px 18px;border-radius:999px;background:#fffaf20d}.edit-keys-button{min-width:132px}.player-layout{display:grid;grid-template-columns:260px 1fr 260px;gap:20px;align-items:center;min-height:0}.stroke-column p{margin:6px 0 18px;color:var(--muted)}.stroke-list{display:grid;gap:12px}.key-pill{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:20px;border:1px solid rgba(244,237,225,.1);background:#fffaf20d;color:inherit;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}.key-pill:hover,.key-pill.pressed{border-color:#f4ede13d;background:#fffaf21a;box-shadow:0 18px 30px #0003}.keycap,.key-input{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(180deg,#fffaf23d,#fffaf214);border:1px solid rgba(244,237,225,.16);font-weight:700}.key-input{color:#fff7ea;text-align:center;outline:none}.key-input:focus{border-color:#f4ede15c;box-shadow:0 0 0 3px #d788422e}.key-input.is-duplicate,.key-editor-row.has-duplicate{border-color:#ff8f7061}.key-input.is-duplicate{box-shadow:0 0 0 3px #ff8f701f}.stroke-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.instrument-stage{position:relative;height:100%;min-height:0;display:grid;place-items:center}.stage-surface{position:relative;width:min(100%,720px);height:min(100%,560px);display:grid;place-items:center;padding:30px 20px 20px;border-radius:36px;background:radial-gradient(circle at top,rgba(255,224,181,.12),transparent 30%),linear-gradient(180deg,#ffffff0d,#ffffff03);border:1px solid rgba(244,237,225,.08);overflow:hidden}.stage-surface:after{content:"";position:absolute;inset:auto 10% 26px;height:28px;border-radius:999px;background:radial-gradient(circle,rgba(0,0,0,.44) 0%,rgba(0,0,0,.08) 72%,transparent 100%);filter:blur(16px)}.stage-surface.pulse{animation:stagePulse .22s ease}.tabla-image-stage{position:relative;width:min(100%,620px);display:grid;place-items:center}.sparkle-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;pointer-events:none}.sparkle-bol{position:absolute;top:18%;display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#2415109e;border:1px solid rgba(255,250,242,.12);color:#fff5e8;font-size:.84rem;font-weight:700;letter-spacing:.04em;box-shadow:0 8px 18px #0000002e;transform:translate(var(--sparkle-x)) translateY(0) rotate(var(--sparkle-rotate));animation:sparkleRise .98s ease-out forwards}.sparkle-bol.left{left:20%}.sparkle-bol.right{right:18%}.sparkle-dot{width:8px;height:8px;border-radius:50%;background:var(--sparkle-glow);box-shadow:0 0 14px var(--sparkle-glow)}.sparkle-label{text-shadow:0 0 14px rgba(255,250,242,.12)}.tabla-image{position:relative;z-index:2;width:100%;height:auto;filter:drop-shadow(0 22px 22px rgba(0,0,0,.22));transition:transform .15s ease,filter .15s ease}.tabla-image.left-active{transform:rotate(-.35deg) translate(-3px) translateY(-4px)}.tabla-image.right-active{transform:rotate(.35deg) translate(3px) translateY(-4px)}.tabla-image.left-active.right-active{transform:translateY(-5px) scale(1.01)}.drum-hit-glow{position:absolute;top:20%;width:34%;aspect-ratio:1;border-radius:50%;z-index:1;opacity:0;transform:scale(.8);transition:opacity .14s ease,transform .14s ease;filter:blur(16px)}.drum-hit-glow.left{left:11%;background:radial-gradient(circle,rgba(244,132,95,.34) 0%,rgba(244,132,95,.08) 45%,transparent 72%)}.drum-hit-glow.right{right:13%;background:radial-gradient(circle,rgba(127,183,190,.34) 0%,rgba(127,183,190,.08) 45%,transparent 72%)}.drum-hit-glow.is-active{opacity:1;transform:scale(1.06)}.player-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:12px}.play-tip{margin:0;justify-self:start;color:#f4ede1ad;font-size:.95rem}.made-by{margin:0;justify-self:end;color:#f4ede194;font-size:.95rem}.player-actions{display:flex;justify-content:center;align-items:center;gap:14px;grid-column:2}.session-button{display:inline-flex;align-items:center;justify-content:center;min-width:240px;height:58px;padding:0 20px;border-radius:999px;border:1px solid rgba(244,237,225,.16);background:#fffaf20d;color:#fff7ea;box-shadow:0 18px 28px #0000002e;transition:transform .16s ease,min-width .18s ease,background .16s ease,box-shadow .16s ease,border-color .16s ease}.record-button{justify-content:center;gap:12px}.record-button.is-recording{min-width:320px;justify-content:space-between;border-color:#ff9f845c;background:linear-gradient(135deg,#c44329eb,#7e1619eb);box-shadow:0 22px 34px #7e161952}.record-button:disabled{opacity:.55;cursor:not-allowed}.record-main{display:inline-flex;align-items:center;gap:12px;font-weight:700}.record-icon{width:16px;height:16px;border-radius:50%;background:#f6ba9b;box-shadow:0 0 0 6px #fff5eb1f;flex:0 0 auto}.record-button.is-recording .record-icon{background:#fff0ea;animation:recordBlink 1s ease-in-out infinite}.record-timer{color:#fff7eab8;font-size:.96rem;letter-spacing:.04em}.view-recordings-button{justify-content:space-between;gap:12px}.recordings-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#fffaf21f;font-size:.86rem}.recording-error{margin:10px 0 0;text-align:center;color:#ffb59c}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#0a07068c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.key-editor-modal,.recordings-modal{width:min(92vw,640px);border-radius:28px;border:1px solid rgba(244,237,225,.12);background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 22%),#2b1a13f5;box-shadow:0 24px 80px #00000059;overflow:hidden}.key-editor-modal{height:min(86vh,760px);display:grid;grid-template-rows:minmax(0,1fr) auto}.recordings-modal{max-height:min(82vh,720px);display:grid;grid-template-rows:auto minmax(0,1fr)}.modal-scroll-area,.recordings-list{min-height:0;overflow:auto}.modal-scroll-area,.recordings-header{padding:24px 24px 12px}.modal-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.modal-eyebrow{margin-bottom:8px}.modal-grid{display:grid;gap:12px;margin-top:22px}.key-editor-row,.recording-row,.recordings-empty{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border-radius:18px;border:1px solid rgba(244,237,225,.08);background:#fffaf20a}.recordings-list{display:grid;gap:12px;padding:0 24px 24px}.recording-row{align-items:flex-start}.recording-row p,.recordings-empty p{margin:6px 0 0;color:#f4ede1b3}.recording-actions{display:flex;align-items:center;gap:12px}.recording-player{display:flex;align-items:center;gap:10px;width:220px;height:44px;padding:0 10px;border-radius:999px;border:1px solid rgba(244,237,225,.1);background:#fffaf20d}.player-play-button{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;border:1px solid rgba(244,237,225,.12);background:#fffaf214;color:#fff7ea;cursor:pointer;font-size:.9rem;line-height:1}.player-progress{flex:1;min-width:0;accent-color:#d78842}.editor-stroke-meta{display:flex;flex-direction:column;gap:4px}.editor-stroke-meta small,.modal-error{color:#f4ede1b3}.modal-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px 24px;border-top:1px solid rgba(244,237,225,.08);background:linear-gradient(180deg,#2b1a13b8,#2b1a13f5)}.modal-error{margin:0;color:#ffb59c}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-left:auto}.modal-save{min-width:160px}.mobile-player-screen{position:relative;z-index:1;height:calc(100vh - 48px);display:grid;grid-template-rows:auto 1fr;padding:6px 8px 0}.mobile-topbar{display:flex;justify-content:flex-start;align-items:center;padding:0 6px;z-index:5}.mobile-topbar .ghost-button{width:auto}.mobile-player-shell{position:relative;min-height:0;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:0 6px 12px}.mobile-bol-cluster{position:relative;width:168px;height:240px;z-index:3}.mobile-bol-cluster-left{justify-self:start}.mobile-bol-cluster-right{justify-self:end;width:176px;height:232px}.mobile-bol-button{position:absolute;width:72px;height:72px;border-radius:50%;border:1px solid rgba(255,250,242,.18);background:radial-gradient(circle at 35% 30%,#fffaf22e,#fffaf20d);color:#fff7ea;font-weight:700;letter-spacing:.03em;box-shadow:0 14px 24px #0003;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease}.mobile-bol-button.is-active,.mobile-bol-button:hover{transform:translateY(-2px) scale(1.04);border-color:#ffdfbb57;background:radial-gradient(circle at 35% 30%,#ffedd247,#e7904e1f);box-shadow:0 18px 28px #0000003d}.mobile-bol-cluster-left .left-top{top:0;left:48px}.mobile-bol-cluster-left .left-middle{bottom:8px;left:0}.mobile-bol-cluster-left .left-bottom{bottom:8px;right:0}.mobile-bol-cluster-right .right-tip{top:0;left:0}.mobile-bol-cluster-right .right-top{top:0;right:0}.mobile-bol-cluster-right .right-middle{bottom:0;left:0}.mobile-bol-cluster-right .right-bottom{bottom:0;right:0}.mobile-center-stage{display:grid;justify-items:center;gap:12px;min-width:0}.mobile-stage-surface{width:min(100%,460px);height:min(58vh,340px);padding:22px 12px 18px;border-radius:30px}.mobile-stage-surface:after{inset:auto 12% 20px;height:20px}.mobile-stage-surface .tabla-image-stage{width:min(100%,500px)}.rotate-notice{display:grid;place-items:center;align-content:center;justify-items:center;gap:8px;width:min(100%,560px);margin:auto;padding:36px;border-radius:30px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 22%),var(--panel);box-shadow:0 24px 60px #0000004d,inset 0 1px #ffffff14;text-align:center}.rotate-notice .description{margin-top:10px}.mobile-controls{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;z-index:4}.mobile-controls .session-button{min-width:152px;height:42px;padding:0 14px;font-size:.88rem}.mobile-controls .record-main{gap:8px}.mobile-controls .record-icon{width:12px;height:12px}.mobile-controls .record-button.is-recording{min-width:212px}.mobile-controls .recordings-count{min-width:22px;height:22px;font-size:.74rem}@keyframes stagePulse{0%{transform:scale(.992)}to{transform:scale(1)}}@keyframes sparkleRise{0%{opacity:0;transform:translate(var(--sparkle-x)) translateY(18px) scale(.78) rotate(var(--sparkle-rotate))}18%{opacity:1}to{opacity:0;transform:translate(var(--sparkle-x)) translateY(-64px) scale(1.08) rotate(calc(var(--sparkle-rotate) + 6deg))}}@keyframes recordBlink{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.9)}}@media (max-width: 1100px){body{overflow:auto}.app-shell{height:auto;min-height:100vh}.home-screen,.player-screen{height:auto;min-height:calc(100vh - 48px)}.home-screen,.player-layout{grid-template-columns:1fr}.player-layout{grid-template-rows:auto auto auto}.instrument-stage{min-height:420px}.stroke-column{order:2}.instrument-stage{order:1}}@media (max-width: 760px){.player-actions,.recording-actions,.recording-row{flex-direction:column;align-items:stretch}.session-button,.record-button.is-recording,.recording-audio,.recording-download{width:100%}}@media (max-width: 640px){.app-shell{padding:16px}.home-screen,.player-screen,.key-editor-modal,.recordings-modal{border-radius:24px}.home-screen{padding:24px}.player-screen{padding:16px}.modal-scroll-area,.recordings-header,.recordings-list{padding-left:16px;padding-right:16px}.modal-scroll-area,.recordings-header{padding-top:16px;padding-bottom:8px}.modal-footer,.player-topbar,.modal-header,.modal-actions,.key-editor-row{flex-direction:column;align-items:stretch}.stage-surface{height:420px;padding:22px 8px 16px}.tabla-image-stage{width:min(100%,440px)}.key-input,.modal-save,.ghost-button,.session-button,.record-button.is-recording{width:100%}.mobile-topbar .ghost-button,.mobile-controls .session-button,.mobile-controls .record-button.is-recording{width:auto}}
