@font-face{font-family:HN;src:url('../fonts/hn-roman.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:HN;src:url('../fonts/hn-bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:HN;src:url('../fonts/hn-heavy.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:HN;src:url('../fonts/hn-black.woff2') format('woff2');font-weight:900;font-display:swap}
@font-face{font-family:Urban;src:url('../fonts/urban.woff2') format('woff2');font-weight:400;font-display:swap}
:root{color-scheme:light;--bg:#c62a19;--white:#fff;--ink:#16110f;--muted:#fbf7f3;--red:#c62a19;--red-dark:#8c1f12;--orange:#ffad07;--paper:#fbf7f3;--line:#e2d3c7;--preview:clamp(220px,calc(100svh - 398px),440px)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{position:relative;isolation:isolate;margin:0;color:var(--white);font:400 16px/1.45 HN,'Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,a{-webkit-tap-highlight-color:transparent}
button,input{font:inherit}
button{cursor:pointer}
button,a,input{touch-action:manipulation}
button{border:0}
a{color:inherit;text-decoration:none}
svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden}
:focus-visible{outline:3px solid var(--orange);outline-offset:5px}
.primary:focus-visible,.toolbar :focus-visible{outline-color:var(--white)}
.toolbar :focus-visible{outline-color:var(--red-dark)}
.topbar{height:84px;width:100%;padding:0 clamp(22px,4vw,64px);display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid var(--orange);background:var(--red)}
.brand{display:block;flex:none;line-height:0}
.brand img{display:block;height:52px;width:auto}
.back{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;color:var(--white)}
.back svg{width:17px;height:17px}
.studio{min-height:calc(100svh - 84px);width:min(100%,560px);margin:auto;padding:28px 24px max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center}
.intro{text-align:center;margin-bottom:22px}
h1{font-size:44px;line-height:1.06;font-weight:900;letter-spacing:-.035em;text-transform:uppercase;color:var(--orange);margin:0 0 10px}
h1 span{font-family:Urban,HN,sans-serif;font-size:1.24em;line-height:.9;font-weight:400;letter-spacing:.005em;color:var(--white)}
.intro p{margin:0;color:var(--muted);font-size:15px}
.editor{display:flex;flex-direction:column;align-items:center;width:100%}
.preview{position:relative;width:min(100%,var(--preview));aspect-ratio:1;flex:none;border-radius:50%;isolation:isolate;background:var(--paper);box-shadow:0 16px 40px -18px #5c170d80}
canvas{display:block;width:100%;height:100%;border-radius:50%;touch-action:none}
[data-state="ready"] canvas{cursor:grab}
[data-state="ready"] canvas:active{cursor:grabbing}
.empty-target{position:absolute;top:16%;left:20%;width:60%;height:36%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:none;color:var(--red-dark);font-weight:700;font-size:14px;border-radius:22px}
.add-icon{display:grid;place-items:center;width:56px;height:56px;background:#fff;border-radius:50%;box-shadow:0 2px 5px #00000008;transition:transform .18s ease,box-shadow .18s ease}
.add-icon svg{width:25px;height:25px;stroke-width:1.7}
.gesture-help{font-size:12px;line-height:18px;color:var(--muted);margin:16px 0 0;text-align:center}
.toolbar{height:48px;display:flex;align-items:center;gap:12px;margin:12px 0 0;width:min(100%,360px);padding:0 4px 0 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}
.text-button{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;min-height:44px;padding:0 6px;background:transparent;color:var(--ink)}
.text-button svg{width:17px;height:17px}
.zoom-control{display:flex;align-items:center;gap:6px;flex:1;min-width:0;border-left:1px solid var(--line);padding-left:10px}
.zoom-icon{width:14px;height:14px;color:var(--red-dark)}
input[type=range]{appearance:none;-webkit-appearance:none;min-width:0;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;--fill:0%}
input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,var(--ink) var(--fill),#d8c5b6 var(--fill))}
input[type=range]::-moz-range-track{height:3px;border-radius:3px;background:#d8c5b6}
input[type=range]::-moz-range-progress{height:3px;background:var(--ink)}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;border:2px solid #fff;background:var(--ink);box-shadow:0 1px 4px #0004;margin-top:-6.5px}
input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;border:2px solid #fff;background:var(--ink);box-shadow:0 1px 4px #0004}
.icon-button{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:4px;background:transparent;color:var(--ink)}
.reset svg{width:17px;height:17px}
.finish{width:min(100%,360px);margin-top:22px;text-align:center}
.action-row{display:flex;gap:10px;width:100%}
.primary{min-height:56px;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;flex:1;color:var(--ink);background:var(--orange);font-size:15px;font-weight:900;box-shadow:0 4px 0 var(--ink);transition:background .16s,transform .16s}
.primary svg{width:20px;height:20px}
.primary:disabled{cursor:wait;background:#e5a839;color:var(--ink);box-shadow:none}
.share{width:56px;height:56px;background:var(--paper);border:0;border-radius:4px;box-shadow:0 4px 0 var(--ink)}
.privacy{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--paper);line-height:16px;margin:13px 0 0}
.privacy svg{width:13px;height:13px;stroke-width:1.7}
.status{color:var(--paper);font-size:12px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.status:not(:empty){margin-top:10px}
.status[data-error="true"]{color:var(--white);font-weight:700}
.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border-radius:50%;background:#fbf7f3ed;color:var(--red-dark);font-size:14px;font-weight:700}
.spinner{width:28px;height:28px;border:2px solid #d8c5b6;border-top-color:var(--red);border-radius:50%;animation:spin .7s linear infinite}
.drop-hint{position:absolute;inset:8px;border:2px dashed var(--red);border-radius:50%;background:#fbf7f3f2;display:none;place-items:center;font-weight:700;color:var(--red);pointer-events:none}
.is-dragover .drop-hint{display:grid}
@keyframes spin{to{transform:rotate(360deg)}}
@media(hover:hover){.primary:not(:disabled):hover{background:#ffc23f}.empty-target:hover .add-icon{transform:translateY(-2px);box-shadow:0 5px 15px #0001}.text-button:hover,.icon-button:hover{background:#f3ede4}.back:hover{color:var(--orange)}}
.primary:not(:disabled):active{transform:translateY(2px);box-shadow:0 2px 0 var(--ink)}
@media(min-width:760px) and (min-height:850px){:root{--preview:clamp(440px,calc(100svh - 420px),490px)}.studio{padding-top:34px;padding-bottom:34px}.intro{margin-bottom:28px}h1{font-size:48px}.finish{margin-top:24px}}
@media(max-width:600px){:root{--preview:clamp(210px,calc(100svh - 342px),390px)}.topbar{height:64px;padding:0 20px}.brand img{height:38px}.back{font-size:12px;gap:7px}.studio{min-height:calc(100svh - 64px);padding:18px 22px max(16px,env(safe-area-inset-bottom))}.intro{margin-bottom:20px}h1{font-size:34px;margin-bottom:8px}.intro p{font-size:13px}.finish{margin-top:18px}.toolbar{gap:8px}.gesture-help{margin-top:13px;font-size:11px}.empty-target{font-size:12px;gap:9px}.add-icon{width:48px;height:48px}}
@media(max-height:700px){:root{--preview:clamp(180px,calc(100svh - 314px),350px)}.topbar{height:58px}.studio{min-height:calc(100svh - 58px);padding-top:14px;padding-bottom:12px}.intro{margin-bottom:14px}h1{font-size:30px;margin-bottom:6px}.gesture-help{margin-top:10px}.toolbar{margin-top:8px;height:44px}.finish{margin-top:14px}.primary,.share{min-height:50px;height:50px}.privacy{margin-top:10px}.add-icon{width:40px;height:40px}.empty-target{gap:6px;font-size:11px}}
@media(max-height:470px) and (min-width:600px){.studio{width:min(100%,850px);display:grid;grid-template-columns:1fr 1fr;gap:10px 32px;padding:18px 32px;align-content:center}.intro{grid-column:2;grid-row:1;text-align:left;margin:0}.editor{grid-column:1;grid-row:1 / span 2}.finish{grid-column:2;grid-row:2;margin:0}.preview{width:min(210px,100%)}.gesture-help{font-size:10px}.toolbar{margin-top:6px;width:100%}.privacy{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The editing controls get room without pushing the save action below the fold. */
.studio[data-state="ready"]{--preview:clamp(180px,calc(100svh - 450px),440px)}
.finish:has(.status:not(:empty)) .privacy{display:none}
.status:not(:empty){margin-top:13px;font-size:11px;min-height:16px}
@media(max-width:600px){.studio[data-state="ready"]{--preview:clamp(180px,calc(100svh - 400px),390px)}}
@media(max-height:700px){.studio[data-state="ready"]{--preview:clamp(160px,calc(100svh - 370px),350px)}}
@media(max-height:470px) and (min-width:600px){.studio[data-state="ready"]{--preview:210px}}
@media(min-width:760px) and (min-height:850px){.studio[data-state="ready"]{--preview:clamp(180px,calc(100svh - 485px),490px)}}

/* Original campaign illustrations, already used by the main website. */
@media(min-width:1000px){
 body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;background:var(--orange);opacity:.1;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}
 body::before{left:3vw;bottom:4vh;width:min(26vw,360px);height:250px;mask-image:url('../img/el/periferia.svg');-webkit-mask-image:url('../img/el/periferia.svg')}
 body::after{right:-3vw;top:13vh;width:min(28vw,430px);height:300px;mask-image:url('../img/el/fios_maritacas.svg');-webkit-mask-image:url('../img/el/fios_maritacas.svg')}
}
@media(max-height:700px){.brand img{height:36px}}

/* Camera is another source for the same editor, in the same space. */
.camera-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:56px;padding:12px 14px;background:var(--paper);color:var(--ink);border-radius:4px;box-shadow:0 4px 0 var(--ink);font-size:14px;font-weight:800;white-space:nowrap}
.camera-button svg{width:19px;height:19px}
.camera-button:disabled{opacity:.65;cursor:wait}
[data-state="empty"] .primary{padding-left:12px;padding-right:12px;font-size:14px;gap:7px}
[data-state="empty"] .primary svg{width:18px;height:18px}
.camera-video{position:absolute;inset:2.2222%;width:95.5556%;height:95.5556%;object-fit:cover;border-radius:50%}
.camera-video[data-mirrored="true"]{transform:scaleX(-1)}
.camera-overlay{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;pointer-events:none}
.camera-tools{width:min(100%,360px);display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.camera-tools button{min-height:44px;padding:8px 12px;background:transparent;color:var(--white);font-size:13px;font-weight:700;border:1px solid #ffffff75;border-radius:4px}
.camera-tools button:disabled{opacity:.55}
.studio[data-state="camera"]{--preview:clamp(180px,calc(100svh - 450px),440px)}
@media(max-width:600px){.studio[data-state="camera"]{--preview:clamp(180px,calc(100svh - 400px),390px)}}
@media(max-height:700px){.studio[data-state="camera"]{--preview:clamp(160px,calc(100svh - 370px),350px)}.camera-button{min-height:50px}.camera-tools{margin-top:8px}}
@media(max-height:470px) and (min-width:600px){.studio[data-state="camera"]{--preview:210px}}
@media(min-width:760px) and (min-height:850px){.studio[data-state="camera"]{--preview:clamp(180px,calc(100svh - 485px),490px)}}
@media(max-width:350px){.camera-button{padding:10px;font-size:13px;gap:5px}[data-state="empty"] .primary{font-size:13px;padding:10px;gap:5px}.toolbar{gap:3px;padding-left:5px}.toolbar .zoom-control{padding-left:5px}}
