*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#100b08;color:#f4ede4;font-family:Arial,Helvetica,sans-serif;font-size:14px}
main{max-width:740px;margin:auto;padding:22px 22px 28px}
a{color:#cbbba8;text-decoration:none}
a:hover{color:#f8f1e8}
button,input,select{-webkit-tap-highlight-color:transparent;font:inherit}
button,a,input,select{touch-action:manipulation}
button:focus,a:focus,input:focus,select:focus{outline:0}
a:focus{color:#f8f1e8;text-decoration:underline}

nav{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;font-size:13px;margin-bottom:24px}
nav a{padding:10px 0}

header{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:24px}
.identity{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center}
.identity img{border-radius:10px;margin-right:12px}
h1{font-size:28px;letter-spacing:-0.8px;margin:0;color:#faf4ec}
h1 span{display:block;font-size:8px;font-weight:normal;letter-spacing:2.2px;color:#b8a58f;margin-top:4px}

#connection{font-size:10px;border:1px solid #4a3a2d;border-radius:20px;padding:7px 11px;color:#bda995}
#connection.live{color:#ebd2b0;border-color:#7c5e3f}

.now{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;border:1px solid #3c2f25;background:#1a130e;padding:18px;border-radius:14px;margin-bottom:28px}
.now>div{-webkit-flex:1;flex:1;min-width:0}
.eyebrow{font-size:8px;letter-spacing:1.8px;color:#cfaf84}
.now h2{font-size:20px;font-weight:normal;letter-spacing:-.4px;margin:8px 0 6px;color:#fcf6ee}
.now p{font-size:11px;color:#b6a28c;margin:0}

.round{width:44px;height:44px;min-width:44px;border:1px solid #5c4938;border-radius:50%;color:#f3e6d4;background:#241a13;cursor:pointer;margin-left:8px}
.round:hover{background:#34261c;border-color:#9e7d58}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

.section-heading{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:14px}
.section-heading h2{font-size:15px;font-weight:normal;margin:0;color:#f8f0e6}
.section-heading>span{font-size:9px;letter-spacing:1px;color:#b69f86}

.rotation-settings{margin:0 0 14px;padding:0 14px;background:#16100c;border:1px solid #362a20;border-radius:10px}
.rotation-settings .setting-row:first-child{border-top:0}

.loop-tools{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-between;justify-content:space-between}
.loop-tools p{font-size:12px;color:#d6b07f;margin:0 12px 0 0}
.loop-tools button,.pill-btn{min-height:44px;padding:0 14px;border:1px solid #594635;border-radius:8px;background:#221912;color:#f4eadc;white-space:nowrap;cursor:pointer;font-size:12px}
.loop-tools button:hover,.pill-btn:hover{background:#302319;border-color:#9e7c56}
.loop-help{font-size:11px;line-height:1.55;color:#a99580;margin:8px 0 16px}

.gallery{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:0 -6px 20px}
.gallery-item{position:relative;width:calc(50% - 12px);margin:0 6px 12px}
.art-card{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;margin:0;padding:0;overflow:hidden;border:1px solid #3c2f24;border-radius:12px;background:#18120d;text-align:left;color:#f5ede3;cursor:pointer;position:relative}
.art-card.selected{border:1px solid #d9b17b}
.art-card:hover{border-color:#9e7d58}
.picture{position:relative;display:block;height:152px;overflow:hidden;background:#150f0b}
.picture img,.picture canvas{position:absolute;width:100%;height:100%;left:0;top:0;object-fit:cover}
.picture canvas{display:none}
.art-card.live-preview .picture canvas{display:block}
.art-card .number{position:absolute;top:10px;left:10px;background:rgba(16,11,8,0.85);color:#f3e7d8;border-radius:4px;font-size:9px;letter-spacing:1px;padding:5px 7px}
.selected-mark{position:absolute;right:10px;bottom:10px;display:none;border-radius:20px;background:#241a12;border:1px solid #b58d5b;color:#f7ebdc;font-size:9px;letter-spacing:.8px;padding:5px 9px}
.selected .selected-mark{display:block}
.card-copy{display:block;padding:13px 13px 14px}
.card-title{display:block;font-size:15px;margin-bottom:5px;color:#faf3ea}
.card-tag{display:block;font-size:8px;color:#b29d87;letter-spacing:1.1px}
.selected .card-tag{color:#dfb986}

.loop-choice{position:absolute;top:3px;right:3px;z-index:1;display:block;width:44px;height:44px;padding:8px;cursor:pointer}
.loop-choice input{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.loop-choice span{position:relative;display:block;width:28px;height:28px;padding:0;border:1px solid #755f4a;border-radius:7px;background:rgba(18,12,8,0.88);background-repeat:no-repeat;background-position:center;background-size:18px 18px}
.loop-choice input:checked+span{background-color:#261c14;border-color:#d6b07f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4L19 6' fill='none' stroke='%23f7ebdc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.loop-choice input:focus+span{border-color:#f8eee2;box-shadow:inset 0 0 0 1px #f8eee2}
.loop-choice input:disabled{opacity:0;cursor:default}
.loop-choice input:disabled+span{opacity:.5}

.settings{margin:0 0 20px;padding:20px;border:1px solid #362a20;border-radius:14px;background:#16100c}
.settings .section-heading{margin-bottom:18px}
.slider-row{margin:0 0 20px}
.slider-row label{display:block;font-size:12px;margin-bottom:10px;color:#efe5d8}
.slider-row output{float:right;color:#dfb986;font-size:11px;font-family:monospace}
input[type=range]{-webkit-appearance:none;background:transparent;display:block;width:100%;height:30px;margin:0;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{background:#47372a;height:4px;border-radius:4px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#d8a363;border:0;width:20px;height:20px;border-radius:50%;margin-top:-8px}
input[type=range]::-moz-range-track{background:#47372a;height:4px}
input[type=range]::-moz-range-thumb{background:#d8a363;border:0;width:20px;height:20px;border-radius:50%}
.range-labels{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;color:#9d8a75;font-size:9px;margin-top:2px}

.setting-row{min-height:60px;border-top:1px solid #2b2119;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-between;justify-content:space-between}
.setting-row label{font-size:12px;margin-right:10px;color:#f0e7dc}
.setting-row label span{display:block;font-size:10px;color:#a5927d;margin-top:4px}
.setting-row select{max-width:52%;height:44px;background:#221912;color:#f3e7d8;border:1px solid #514031;border-radius:6px;padding:0 8px;font-size:11px}
.setting-row input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:44px;height:28px;border:1px solid #6e5a47;border-radius:7px;background:#1c140e;cursor:pointer;background-repeat:no-repeat;background-position:center}
.setting-row input[type=checkbox]:checked{background-color:#2a1f16;border-color:#d6b07f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4L19 6' fill='none' stroke='%23f7ebdc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

button:disabled,input:disabled,select:disabled{opacity:.45;cursor:default}

.art-card:focus,.round:focus,.pill-btn:focus,.setting-row select:focus,.setting-row input[type=checkbox]:focus,#loopAll:focus{border-color:#f8eee2;box-shadow:inset 0 0 0 1px #f8eee2}
input[type=range]:focus::-webkit-slider-thumb{background:#f5dec0}
input[type=range]:focus::-moz-range-thumb{background:#f5dec0}

footer{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;color:#998672;font-size:9px;margin-top:18px;line-height:1.5}
footer span:first-child{letter-spacing:1px}

@media(max-width:520px){
main{padding:14px 14px 22px}
nav{margin-bottom:18px}
header{margin-bottom:18px}
h1{font-size:24px}
.now{padding:15px 14px;margin-bottom:22px}
.now h2{font-size:18px}
.round{margin-left:6px;width:40px;height:40px;min-width:40px}
.picture{height:112px}
.card-title{font-size:13px}
.card-copy{padding:10px 10px 11px}
.card-tag{font-size:7px;letter-spacing:.7px}
.settings{padding:16px}
}
@media(max-width:350px){
.gallery-item{width:calc(100% - 12px)}
.picture{height:148px}
#connection{max-width:98px;text-align:center}
.identity img{width:34px;height:34px;margin-right:8px}
}

::selection{background:#4a3b2e;color:#fff}
::-moz-selection{background:#4a3b2e;color:#fff}
