body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

#wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
}

h1 {
    margin: 0 0 8px;
    color: #222;
    font-size: clamp(1.6rem, 5vw, 2rem);
    text-align: center;
}

.tool-intro {
    box-sizing: border-box;
    width: calc(100% - 36px);
    max-width: 520px;
    margin: 0 18px 52px;
    color: #666;
    line-height: 1.45;
    text-align: center;
}

#wheel {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid #333;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid red;
    position: absolute;
    top: -39px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

#spin-button {
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

.tool-links {
    box-sizing: border-box;
    width: calc(100% - 36px);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    max-width: 680px;
    margin: 28px 18px 0;
    color: #888;
    font-size: 0.78em;
    line-height: 1.4;
    text-align: center;
}
.tool-links span { color: #aaa; }
.tool-links a { color: #666; text-decoration: none; }
.tool-links a:hover,
.tool-links a[aria-current="page"] { color: #222; text-decoration: underline; }

@media (max-width: 520px) {
    body { padding: 20px 0; box-sizing: border-box; }
    .tool-intro { margin-bottom: 46px; font-size: 0.9rem; }
    .tool-links { gap: 5px 10px; margin-top: 22px; }
}
