html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.ez {
position: relative;
width: min(92vw, 160vh - 12.8vw);
aspect-ratio: 480/300;
margin: 0 auto;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
background: #17141a;
}
.ez__pad {
position: absolute;
inset: 0;
border-radius: inherit;
outline: none;
cursor: default;
}
.ez__pad:focus-visible {
outline: 3px solid #fff7e6;
outline-offset: -3px;
}
.ez__canvas {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
}
.ez__ctrl {
position: absolute;
right: 12px;
top: 12px;
display: flex;
gap: 8px;
}
.ez__pause {
padding: 4px 12px;
border: 2px solid #fff7e6;
border-radius: 999px;
background: #fff7e6;
color: #17141a;
font-family: inherit;
font-weight: 700;
font-size: 12px;
line-height: 1.6;
cursor: pointer;
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ez__done {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.ez__pause[aria-pressed=true] {
background: #17141a;
color: #fff7e6;
}
.ez__pause:hover {
transform: translateY(-2px);
}
.ez__pause:active {
transform: translateY(1px);
}
.ez__pause:focus-visible {
outline: 3px solid #fff7e6;
outline-offset: 3px;
}
.ez__status {
position: absolute;
left: 12px;
top: 12px;
max-width: calc(100% - 100px);
margin: 0;
padding: 4px 12px;
border-radius: 999px;
background: #fff7e6;
color: #17141a;
font-weight: 700;
font-size: 11px;
line-height: 1.6;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
@media (max-width: 340px) {
.ez__pause,
.ez__status {
font-size: 10px;
padding: 0 8px;
}
}
@media (prefers-reduced-motion: reduce) {
.ez__pause {
transition: none !important;
}
.ez__pause:hover,
.ez__pause:active {
transform: none !important;
}
}