.main { position: relative; min-height: calc(100vh - 65px); overflow: hidden; display: flex; align-items: center; } .rules { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient( to bottom, transparent 0 31px, var(--cp-border) 31px 32px ); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 10%, transparent 72%); } .glow { position: absolute; left: 50%; top: 70%; width: 1000px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, var(--cp-glow), transparent 62%); pointer-events: none; } .inner { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vh, 120px) clamp(16px, 3vw, 32px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; } .title { margin: 16px 0 0; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; } .lead { margin: 20px 0 40px; max-width: 40ch; font-size: 18px; color: var(--cp-muted); text-wrap: pretty; } .card { width: 100%; border-radius: 20px; border: 1px solid var(--cp-border-strong); background: var(--cp-bg-raise); box-shadow: var(--cp-shadow); text-align: left; overflow: hidden; } .head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--cp-border); font-family: var(--cp-mono); font-size: 12px; color: var(--cp-muted); } .problem { color: var(--cp-err); } .code { padding: 20px 0 24px; font-family: var(--cp-mono); font-size: clamp(12.5px, 1.6vw, 15px); line-height: 28px; overflow-x: auto; } .line { display: flex; white-space: pre; } .gutter { width: 44px; flex: none; text-align: right; padding-right: 18px; box-sizing: border-box; color: var(--cp-faint); } .active { background: var(--cp-surface); } .active .gutter { color: var(--cp-text); } .k { color: var(--cp-k); } .s { color: var(--cp-s); } .f { color: var(--cp-f); } .squiggle { text-decoration: underline wavy var(--cp-err); text-decoration-thickness: 1.5px; text-underline-offset: 5px; } .caret { display: inline-block; width: 2px; height: 17px; vertical-align: -3px; background: var(--cp-accent); animation: cpBlink 1.1s step-end infinite; } .diagnostic { display: flex; margin-top: 10px; opacity: 0; transform: translateY(-6px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); white-space: normal; } .diagnosticOn { opacity: 1; transform: translateY(0); } .gutterSpace { width: 44px; flex: none; } .box { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--cp-err) 40%, transparent); background: color-mix(in srgb, var(--cp-err) 10%, transparent); font-family: var(--cp-sans); font-size: 14px; line-height: 1.5; max-width: 480px; } .message { color: var(--cp-text); } .error { font-family: var(--cp-mono); font-size: 12px; color: var(--cp-err); margin-right: 8px; } .note { color: var(--cp-muted); font-size: 13px; } .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; } .actions .ghost { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; color: var(--cp-muted); font-weight: 500; font-size: 15px; } .actions .ghost:hover { color: var(--cp-text); } .actions button { box-sizing: content-box; background: transparent; cursor: pointer; }