/* font */
@font-face {
    font-family: "yuruka";
    src: url("/fonts/Yuruka.woff2") format("woff2");
}

body {
    font-family: "yuruka", sans-serif;
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    color: #ffffff;
}

.display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.display>div {
    aspect-ratio: 16 / 9;
    height: 100vh;
    position: relative;
}

.display>.primary {}

.display>.secondary {
    display: none;
}

.display>.tertiary {
    display: none;
}

/* 32:9以上なら2枚表示 */
@media screen and (min-aspect-ratio: 32 / 9) {
    .display>.secondary {
        display: block;
    }
}

/* 48:9以上なら3枚表示 */
@media screen and (min-aspect-ratio: 48 / 9) {
    .display>.tertiary {
        display: block;
    }
}

/*clock*/
#clock {
    position: absolute;
    top: 0em;
    left: 1em;
    font-size: 3em;
    line-height: 1;
}

/*widget*/
.widget>div {
    width: 360px;
    background: #00000038;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px #0002;
}

.widget>div .title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 14px;
}

.widget>div .card {
    background: #0000001a;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px #0001;
}

/*Minecraft Widget Styles*/
#minecraft {
    position: absolute;
    top: 1em;
    right: 1em;
}

.minecraft-box .picup {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.minecraft-box .picup>div {
    width: calc(50% - 20px);
    padding: 8px;
}

.minecraft-box #playerList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.minecraft-box #playerList>div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minecraft-box #playerList img {
    width: 32px;
    height: 32px;
}

/*Discord Widget Styles*/
#discord {
    position: absolute;
    bottom: calc(1em + 48px);
    right: 1em;
}

.status {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.channel-name {
    font-weight: bold;
    color: #8ea1ff;
    margin-bottom: 10px;
}

.member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.member img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.member {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    /* ←重要 */
}

.member img {
    flex-shrink: 0;
}

.member-name {
    flex: 1;
    min-width: 0;
    /* ←最重要 */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.empty {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}