#cantstop-app, #cantstop-app * { box-sizing: border-box; }

#cantstop-app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    color: #333333;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#cantstop-app button, #cantstop-app input { font: inherit; }

#cantstop-app .page {
    --cell: 26px;
    --gap: 2px;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#cantstop-app .shapes { pointer-events: none; }

#cantstop-app .shape {
    position: absolute;
    opacity: 0.22;
    color: #c5cad3;
}

#cantstop-app .hex {
    width: 28px;
    height: 32px;
    background: transparent;
    border: 2px solid currentColor;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

#cantstop-app .hex.a { top: 18%; left: 6%; }

#cantstop-app .hex.b { bottom: 22%; right: 8%; width: 22px; height: 26px; }

#cantstop-app .tri {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid currentColor;
    opacity: 0.16;
}

#cantstop-app .tri.a { top: 42%; right: 7%; }

#cantstop-app .tri.b { bottom: 8%; left: 10%; transform: rotate(18deg); }

#cantstop-app .sq {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    transform: rotate(18deg);
}

#cantstop-app .sq.a { bottom: 30%; left: 8%; }

#cantstop-app .plus {
    width: 14px;
    height: 14px;
    position: absolute;
}

#cantstop-app .plus:before, #cantstop-app .plus:after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

#cantstop-app .plus:before { left: 6px; top: 0; width: 2px; height: 14px; }

#cantstop-app .plus:after { left: 0; top: 6px; width: 14px; height: 2px; }

#cantstop-app .plus.a { top: 58%; left: 18%; }

#cantstop-app .plus.b { bottom: 16%; right: 22%; }

#cantstop-app .boot {
    margin: auto;
    color: #8b919a;
}

#cantstop-app .setup {
    position: relative;
    z-index: 1;
    margin: auto 16px;
    padding: 8px 4px 24px;
}

#cantstop-app .setup h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}

#cantstop-app .lead {
    margin: 0 0 16px;
    font-size: 15px;
}

#cantstop-app .count {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

#cantstop-app .count button, #cantstop-app .ghost, #cantstop-app .open button, #cantstop-app .btn, #cantstop-app .primary, #cantstop-app .round {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #d5d8de;
    background: #fff;
    color: #2c3138;
}

#cantstop-app .count button {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

#cantstop-app .count button.on {
    color: #fff;
    background: #b79363;
    border-color: #a07143;
}

#cantstop-app .name-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e1e4ea;
    border-radius: 10px;
    padding: 0 10px;
    min-height: 44px;
}

#cantstop-app .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 12px;
}

#cantstop-app .name-field input {
    border: 0;
    outline: none;
    width: 100%;
    min-height: 42px;
    background: transparent;
    font-size: 16px;
}

#cantstop-app .primary, #cantstop-app .ghost, #cantstop-app .setup .err {
    width: 100%;
}

#cantstop-app .primary {
    margin-top: 8px;
    background: #b79363;
    border-color: #a071436b;
    color: #fff;
    font-weight: 600;
}

#cantstop-app .primary:disabled { opacity: 0.5; }

#cantstop-app .ghost { margin-top: 8px; }

#cantstop-app .open {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

#cantstop-app .open input {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #d5d8de;
    padding: 0 10px;
    font-size: 16px;
    text-transform: uppercase;
    max-width: 155px;
}

#cantstop-app .open button { padding: 0 14px; }

#cantstop-app .table {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px 8px 8px;
    min-height: 0;
}

#cantstop-app .board {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--gap);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#cantstop-app .col {
    width: var(--cell);
    flex: 0 0 var(--cell);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

#cantstop-app .num {
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

#cantstop-app .stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

#cantstop-app .col.hot .stack {
    box-shadow: 0 0 0 1.5px var(--hot, #333);
    border-radius: 4px;
}

#cantstop-app .cell {
    width: var(--cell);
    height: var(--cell);
    border-radius: 3px;
    border: 1px solid rgba(20, 24, 32, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

#cantstop-app .cell .plus {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    color: #1b1e24;
    font-size: calc(var(--cell) * 0.72);
    font-weight: 700;
    line-height: 1;
}

#cantstop-app .cell .plus:before, #cantstop-app .cell .plus:after { display: none; }

#cantstop-app .col.claimed .cell { opacity: 0.38; }

#cantstop-app .col.claimed .cell.summit { opacity: 1; }

#cantstop-app .col.claimed { pointer-events: none; }

#cantstop-app .footer { flex: 0 0 auto; }

#cantstop-app .names {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 2px;
    padding: 6px 2px 0;
}

#cantstop-app .name {
    flex: 0 1 calc(50% - 16px);
    max-width: calc(50% - 8px);
    font-size: 16px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    padding: 2px 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cantstop-app .gid {
    margin: 2px 2px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #333;
}

#cantstop-app .status {
    margin: 6px 2px 0;
    min-height: 20px;
    font-size: 15px;
    color: #000;
}

#cantstop-app .err {
    margin: 4px 2px 0;
    color: #c0392b;
    font-size: 14px;
}

#cantstop-app .actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 8px;
}

#cantstop-app .btn {
    flex: 1 1 0;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1.15;
}

#cantstop-app .btn:disabled { opacity: 0.38; }

#cantstop-app .round {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6570;
}

#cantstop-app .winner {
    margin-top: 8px;
}

#cantstop-app .winner p {
    margin: 0 0 8px;
    font-size: 16px;
    color: #2c3138;
}

#cantstop-app button { cursor: pointer; }

#cantstop-app#cantstop-app {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3138;
    line-height: 1.45;
    text-align: left;
}

#cantstop-app#cantstop-app h1,
#cantstop-app#cantstop-app p,
#cantstop-app#cantstop-app button,
#cantstop-app#cantstop-app input,
#cantstop-app#cantstop-app label {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

#cantstop-app#cantstop-app button {
    width: auto;
    box-shadow: none;
    text-decoration: none;
}

#cantstop-app#cantstop-app .primary,
#cantstop-app#cantstop-app .ghost,
#cantstop-app#cantstop-app .setup .err {
    width: 100%;
}
